結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2020-02-08 22:11:35
言語 Crystal
(1.11.2)
結果
AC  
実行時間 1,340 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 18,468 ms
コンパイル使用メモリ 255,012 KB
実行使用メモリ 51,064 KB
最終ジャッジ日時 2023-09-13 10:20:50
合計ジャッジ時間 33,605 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,291 ms
49,880 KB
testcase_01 AC 1,307 ms
49,016 KB
testcase_02 AC 1,313 ms
50,796 KB
testcase_03 AC 1,340 ms
49,976 KB
testcase_04 AC 1,315 ms
49,912 KB
testcase_05 AC 1,306 ms
48,960 KB
testcase_06 AC 1,288 ms
50,392 KB
testcase_07 AC 1,311 ms
51,064 KB
testcase_08 AC 1,320 ms
50,372 KB
testcase_09 AC 1,319 ms
49,628 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