結果

問題 No.1396 Giri
ユーザー yuruhiyayuruhiya
提出日時 2021-02-15 17:40:43
言語 Ruby
(3.3.0)
結果
AC  
実行時間 393 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 21,096 KB
最終ジャッジ日時 2023-09-30 14:44:26
合計ジャッジ時間 6,845 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
15,224 KB
testcase_01 AC 96 ms
15,524 KB
testcase_02 AC 386 ms
20,948 KB
testcase_03 AC 94 ms
15,120 KB
testcase_04 AC 96 ms
15,628 KB
testcase_05 AC 392 ms
21,044 KB
testcase_06 AC 94 ms
15,544 KB
testcase_07 AC 94 ms
15,400 KB
testcase_08 AC 96 ms
15,480 KB
testcase_09 AC 95 ms
15,528 KB
testcase_10 AC 96 ms
15,460 KB
testcase_11 AC 95 ms
15,464 KB
testcase_12 AC 96 ms
15,424 KB
testcase_13 AC 97 ms
15,548 KB
testcase_14 AC 95 ms
15,548 KB
testcase_15 AC 97 ms
15,476 KB
testcase_16 AC 95 ms
15,580 KB
testcase_17 AC 97 ms
15,564 KB
testcase_18 AC 118 ms
16,008 KB
testcase_19 AC 247 ms
18,232 KB
testcase_20 AC 251 ms
18,288 KB
testcase_21 AC 384 ms
21,096 KB
testcase_22 AC 391 ms
20,892 KB
testcase_23 AC 393 ms
20,896 KB
testcase_24 AC 389 ms
20,796 KB
testcase_25 AC 393 ms
20,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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