結果

問題 No.1396 Giri
ユーザー maguroflymagurofly
提出日時 2021-02-14 22:16:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 385 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 11,236 KB
実行使用メモリ 20,980 KB
最終ジャッジ日時 2023-09-29 15:51:26
合計ジャッジ時間 6,775 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
15,040 KB
testcase_01 AC 93 ms
15,320 KB
testcase_02 AC 380 ms
20,900 KB
testcase_03 AC 91 ms
15,104 KB
testcase_04 AC 93 ms
15,492 KB
testcase_05 AC 379 ms
20,976 KB
testcase_06 AC 91 ms
15,380 KB
testcase_07 AC 90 ms
15,420 KB
testcase_08 AC 91 ms
15,536 KB
testcase_09 AC 92 ms
15,388 KB
testcase_10 AC 92 ms
15,448 KB
testcase_11 AC 91 ms
15,384 KB
testcase_12 AC 92 ms
15,468 KB
testcase_13 AC 91 ms
15,348 KB
testcase_14 AC 92 ms
15,304 KB
testcase_15 AC 91 ms
15,392 KB
testcase_16 AC 92 ms
15,212 KB
testcase_17 AC 94 ms
15,440 KB
testcase_18 AC 112 ms
15,752 KB
testcase_19 AC 238 ms
17,996 KB
testcase_20 AC 244 ms
18,172 KB
testcase_21 AC 378 ms
20,764 KB
testcase_22 AC 378 ms
20,796 KB
testcase_23 AC 382 ms
20,884 KB
testcase_24 AC 385 ms
20,980 KB
testcase_25 AC 379 ms
20,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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