結果

問題 No.3079 アルベド
ユーザー cielciel
提出日時 2021-04-15 08:26:47
言語 Ruby
(3.3.0)
結果
AC  
実行時間 484 ms / 2,000 ms
コード長 98 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 11,348 KB
実行使用メモリ 16,724 KB
最終ジャッジ日時 2023-09-13 23:24:29
合計ジャッジ時間 5,918 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 210 ms
16,380 KB
testcase_01 AC 484 ms
16,520 KB
testcase_02 AC 364 ms
16,500 KB
testcase_03 AC 300 ms
16,476 KB
testcase_04 AC 416 ms
16,512 KB
testcase_05 AC 351 ms
16,724 KB
testcase_06 AC 391 ms
16,624 KB
testcase_07 AC 202 ms
16,664 KB
testcase_08 AC 225 ms
16,392 KB
testcase_09 AC 344 ms
16,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require'prime'
a=[0]
1.upto(10**5){|i|a<<a[-1]+(i.prime? ? 1 : 0)}
gets.to_i.times{p a[gets.to_i]}
0