結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2019-03-20 11:16:42
言語 Crystal
(1.11.2)
結果
AC  
実行時間 961 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 16,330 ms
コンパイル使用メモリ 255,088 KB
実行使用メモリ 51,420 KB
最終ジャッジ日時 2023-09-13 10:05:40
合計ジャッジ時間 26,886 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 884 ms
50,576 KB
testcase_01 AC 890 ms
51,420 KB
testcase_02 AC 961 ms
50,752 KB
testcase_03 AC 880 ms
49,468 KB
testcase_04 AC 885 ms
50,100 KB
testcase_05 AC 847 ms
49,772 KB
testcase_06 AC 828 ms
49,696 KB
testcase_07 AC 884 ms
49,672 KB
testcase_08 AC 913 ms
48,980 KB
testcase_09 AC 907 ms
48,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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