結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2018-04-03 09:11:10
言語 Crystal
(1.11.2)
結果
AC  
実行時間 1,488 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 18,575 ms
コンパイル使用メモリ 255,872 KB
実行使用メモリ 51,988 KB
最終ジャッジ日時 2023-09-13 09:43:53
合計ジャッジ時間 36,151 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,471 ms
49,572 KB
testcase_01 AC 1,483 ms
50,324 KB
testcase_02 AC 1,469 ms
51,988 KB
testcase_03 AC 1,472 ms
50,400 KB
testcase_04 AC 1,483 ms
50,004 KB
testcase_05 AC 1,486 ms
50,468 KB
testcase_06 AC 1,467 ms
51,044 KB
testcase_07 AC 1,488 ms
49,044 KB
testcase_08 AC 1,480 ms
50,100 KB
testcase_09 AC 1,480 ms
50,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=14**6
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