結果

問題 No.1396 Giri
ユーザー kotatsugamekotatsugame
提出日時 2021-02-14 23:21:01
言語 Ruby
(3.3.0)
結果
AC  
実行時間 382 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 11,408 KB
実行使用メモリ 21,120 KB
最終ジャッジ日時 2023-09-29 17:15:40
合計ジャッジ時間 7,042 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
15,184 KB
testcase_01 AC 89 ms
15,496 KB
testcase_02 AC 378 ms
20,940 KB
testcase_03 AC 91 ms
15,252 KB
testcase_04 AC 89 ms
15,440 KB
testcase_05 AC 378 ms
21,120 KB
testcase_06 AC 91 ms
15,340 KB
testcase_07 AC 91 ms
15,392 KB
testcase_08 AC 90 ms
15,332 KB
testcase_09 AC 90 ms
15,616 KB
testcase_10 AC 91 ms
15,508 KB
testcase_11 AC 90 ms
15,404 KB
testcase_12 AC 91 ms
15,508 KB
testcase_13 AC 90 ms
15,608 KB
testcase_14 AC 89 ms
15,396 KB
testcase_15 AC 90 ms
15,376 KB
testcase_16 AC 89 ms
15,560 KB
testcase_17 AC 93 ms
15,380 KB
testcase_18 AC 110 ms
15,684 KB
testcase_19 AC 235 ms
18,332 KB
testcase_20 AC 243 ms
18,492 KB
testcase_21 AC 373 ms
20,968 KB
testcase_22 AC 379 ms
20,896 KB
testcase_23 AC 382 ms
21,036 KB
testcase_24 AC 379 ms
20,988 KB
testcase_25 AC 379 ms
20,968 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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