結果

問題 No.1396 Giri
ユーザー maguroflymagurofly
提出日時 2021-02-14 22:17:52
言語 Ruby
(3.3.0)
結果
AC  
実行時間 374 ms / 2,000 ms
コード長 100 bytes
コンパイル時間 684 ms
コンパイル使用メモリ 11,212 KB
実行使用メモリ 21,104 KB
最終ジャッジ日時 2023-09-29 15:53:33
合計ジャッジ時間 7,075 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,220 KB
testcase_01 AC 87 ms
15,404 KB
testcase_02 AC 371 ms
21,020 KB
testcase_03 AC 87 ms
15,320 KB
testcase_04 AC 87 ms
15,536 KB
testcase_05 AC 373 ms
20,860 KB
testcase_06 AC 87 ms
15,268 KB
testcase_07 AC 88 ms
15,272 KB
testcase_08 AC 86 ms
15,372 KB
testcase_09 AC 92 ms
15,372 KB
testcase_10 AC 86 ms
15,372 KB
testcase_11 AC 88 ms
15,436 KB
testcase_12 AC 89 ms
15,440 KB
testcase_13 AC 87 ms
15,452 KB
testcase_14 AC 86 ms
15,528 KB
testcase_15 AC 88 ms
15,264 KB
testcase_16 AC 88 ms
15,480 KB
testcase_17 AC 90 ms
15,444 KB
testcase_18 AC 106 ms
15,884 KB
testcase_19 AC 231 ms
18,388 KB
testcase_20 AC 240 ms
18,176 KB
testcase_21 AC 368 ms
20,788 KB
testcase_22 AC 372 ms
21,004 KB
testcase_23 AC 374 ms
20,948 KB
testcase_24 AC 373 ms
21,020 KB
testcase_25 AC 373 ms
21,104 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require"prime"
p Prime.each(n=gets.to_i).to_a[0..-2].inject(1){_1*_2**Math.log(n,_2).to_i%998244353}
0