結果

問題 No.2275 →↑↓
ユーザー chineristACchineristAC
提出日時 2023-04-21 21:24:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 509 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 112,000 KB
最終ジャッジ日時 2024-04-24 07:33:25
合計ジャッジ時間 2,803 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
67,840 KB
testcase_01 AC 79 ms
67,712 KB
testcase_02 AC 76 ms
67,840 KB
testcase_03 AC 76 ms
67,840 KB
testcase_04 AC 76 ms
67,840 KB
testcase_05 AC 79 ms
68,096 KB
testcase_06 AC 128 ms
101,572 KB
testcase_07 AC 121 ms
96,020 KB
testcase_08 AC 141 ms
107,632 KB
testcase_09 AC 136 ms
107,836 KB
testcase_10 AC 141 ms
112,000 KB
testcase_11 AC 139 ms
112,000 KB
testcase_12 AC 140 ms
107,708 KB
testcase_13 AC 139 ms
107,684 KB
testcase_14 AC 138 ms
107,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import gcd,log

from math import sqrt, ceil
from bisect import bisect_left, bisect_right
from typing import Iterable


input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

mod = 998244353

N = int(input())
A = li()

res = 1
for i in range(N-1):
    res *= min(A[i],A[i+1])
    res %= mod
print(res)
0