結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2019-03-20 11:15:01
言語 Crystal
(1.11.2)
結果
AC  
実行時間 806 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 19,005 ms
コンパイル使用メモリ 253,060 KB
実行使用メモリ 36,228 KB
最終ジャッジ日時 2023-09-13 10:02:41
合計ジャッジ時間 26,459 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 762 ms
36,192 KB
testcase_01 AC 789 ms
36,164 KB
testcase_02 AC 806 ms
36,140 KB
testcase_03 AC 790 ms
36,112 KB
testcase_04 AC 750 ms
36,072 KB
testcase_05 AC 689 ms
36,080 KB
testcase_06 AC 652 ms
36,228 KB
testcase_07 AC 644 ms
36,188 KB
testcase_08 AC 680 ms
36,188 KB
testcase_09 AC 680 ms
36,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=5111443
a=[0]*-~M
(1..M).map{|i|(1..M/i).each{|j|a[i*j]+=1}}
a=(1..M).select{|i|a[i]==4}
p a[gets.not_nil!.to_i-1]
0