結果

問題 No.2275 →↑↓
ユーザー simansiman
提出日時 2023-04-21 22:10:36
言語 Ruby
(3.3.0)
結果
AC  
実行時間 225 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 29,184 KB
最終ジャッジ日時 2024-04-26 22:42:02
合計ジャッジ時間 3,687 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
12,032 KB
testcase_01 AC 89 ms
12,288 KB
testcase_02 AC 89 ms
12,160 KB
testcase_03 AC 90 ms
12,288 KB
testcase_04 AC 90 ms
12,160 KB
testcase_05 AC 90 ms
12,160 KB
testcase_06 AC 200 ms
24,832 KB
testcase_07 AC 172 ms
21,248 KB
testcase_08 AC 225 ms
29,184 KB
testcase_09 AC 222 ms
28,928 KB
testcase_10 AC 224 ms
29,184 KB
testcase_11 AC 222 ms
29,056 KB
testcase_12 AC 222 ms
29,056 KB
testcase_13 AC 223 ms
29,056 KB
testcase_14 AC 224 ms
28,928 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
A = gets.split.map(&:to_i)
MOD = 998_244_353

ans = 1

A.each_cons(2).map { |a, b| [a, b].min }.each do |x|
  ans *= x
  ans %= MOD
end

puts ans
0