結果

問題 No.2275 →↑↓
ユーザー Meso Meso
提出日時 2025-05-10 10:48:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 146 bytes
コンパイル時間 1,026 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 35,752 KB
最終ジャッジ日時 2025-05-10 10:48:28
合計ジャッジ時間 5,175 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 TLE * 1 -- * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353

n = int(input())
a = list(map(int, input().split()))

ans = 1
for i in range(n-1):
    ans *= min(a[i], a[i+1])

print(ans % mod)
0