結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
15,396 KB
testcase_01 AC 90 ms
15,292 KB
testcase_02 AC 370 ms
20,888 KB
testcase_03 AC 91 ms
15,236 KB
testcase_04 AC 91 ms
15,316 KB
testcase_05 AC 367 ms
20,884 KB
testcase_06 AC 89 ms
15,376 KB
testcase_07 AC 92 ms
15,196 KB
testcase_08 AC 90 ms
15,268 KB
testcase_09 AC 90 ms
15,068 KB
testcase_10 AC 92 ms
15,200 KB
testcase_11 AC 91 ms
15,288 KB
testcase_12 AC 92 ms
15,356 KB
testcase_13 AC 91 ms
15,156 KB
testcase_14 AC 92 ms
15,144 KB
testcase_15 AC 93 ms
15,300 KB
testcase_16 AC 93 ms
15,188 KB
testcase_17 AC 94 ms
15,348 KB
testcase_18 AC 111 ms
15,616 KB
testcase_19 AC 234 ms
18,180 KB
testcase_20 AC 237 ms
18,052 KB
testcase_21 AC 365 ms
20,884 KB
testcase_22 AC 366 ms
20,780 KB
testcase_23 AC 367 ms
20,904 KB
testcase_24 AC 372 ms
21,024 KB
testcase_25 AC 369 ms
20,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require"prime"
N=gets.to_i
p Prime.each(N).to_a[0..-2].inject(1){|a,b|x=1;x*=b while x*b<=N;a*x%998244353}
0