結果
問題 |
No.2275 →↑↓
|
ユーザー |
|
提出日時 | 2025-05-10 10:49:35 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 146 bytes |
コンパイル時間 | 548 ms |
コンパイル使用メモリ | 82,884 KB |
実行使用メモリ | 61,176 KB |
最終ジャッジ日時 | 2025-05-10 10:49:40 |
合計ジャッジ時間 | 4,897 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 TLE * 1 -- * 8 |
ソースコード
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)