結果

問題 No.2275 →↑↓
ユーザー くねんじくねんじ
提出日時 2023-05-28 21:11:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 30,000 KB
最終ジャッジ日時 2023-08-27 16:25:37
合計ジャッジ時間 2,780 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,872 KB
testcase_01 AC 16 ms
7,888 KB
testcase_02 AC 16 ms
7,944 KB
testcase_03 AC 16 ms
7,784 KB
testcase_04 AC 16 ms
7,876 KB
testcase_05 AC 15 ms
7,952 KB
testcase_06 AC 151 ms
25,468 KB
testcase_07 AC 116 ms
21,064 KB
testcase_08 AC 180 ms
30,000 KB
testcase_09 AC 183 ms
29,964 KB
testcase_10 AC 184 ms
29,860 KB
testcase_11 AC 182 ms
29,800 KB
testcase_12 AC 180 ms
29,856 KB
testcase_13 AC 185 ms
29,988 KB
testcase_14 AC 182 ms
29,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))
ans = 1
for i in range(N-1):
    ans = (ans * min(A[i], A[i+1])) % 998244353
print(ans)
0