結果

問題 No.1396 Giri
ユーザー kotatsugamekotatsugame
提出日時 2021-02-15 17:58:37
言語 Ruby
(3.3.0)
結果
AC  
実行時間 375 ms / 2,000 ms
コード長 93 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 21,296 KB
最終ジャッジ日時 2023-09-30 15:03:34
合計ジャッジ時間 6,768 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,560 KB
testcase_01 AC 86 ms
15,288 KB
testcase_02 AC 373 ms
21,220 KB
testcase_03 AC 87 ms
15,608 KB
testcase_04 AC 86 ms
15,652 KB
testcase_05 AC 372 ms
21,296 KB
testcase_06 AC 88 ms
15,524 KB
testcase_07 AC 89 ms
15,612 KB
testcase_08 AC 88 ms
15,584 KB
testcase_09 AC 87 ms
15,384 KB
testcase_10 AC 87 ms
15,448 KB
testcase_11 AC 87 ms
15,552 KB
testcase_12 AC 87 ms
15,504 KB
testcase_13 AC 87 ms
15,596 KB
testcase_14 AC 88 ms
15,448 KB
testcase_15 AC 88 ms
15,604 KB
testcase_16 AC 88 ms
15,380 KB
testcase_17 AC 89 ms
15,704 KB
testcase_18 AC 106 ms
15,880 KB
testcase_19 AC 230 ms
18,932 KB
testcase_20 AC 243 ms
18,960 KB
testcase_21 AC 373 ms
21,064 KB
testcase_22 AC 374 ms
21,108 KB
testcase_23 AC 374 ms
21,168 KB
testcase_24 AC 375 ms
21,204 KB
testcase_25 AC 374 ms
21,296 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -nrprime
p [s=1,*Prime.each(n=$_.to_i).map{s=s*_1**Math.log(n,_1).to_i%998244353}][-2]
0