結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2019-03-20 11:18:18
言語 Crystal
(1.11.2)
結果
AC  
実行時間 784 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 17,286 ms
コンパイル使用メモリ 253,832 KB
実行使用メモリ 38,168 KB
最終ジャッジ日時 2023-09-13 10:06:13
合計ジャッジ時間 25,991 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 753 ms
38,168 KB
testcase_01 AC 784 ms
37,380 KB
testcase_02 AC 730 ms
37,320 KB
testcase_03 AC 708 ms
37,716 KB
testcase_04 AC 666 ms
38,120 KB
testcase_05 AC 728 ms
38,108 KB
testcase_06 AC 720 ms
37,312 KB
testcase_07 AC 621 ms
37,420 KB
testcase_08 AC 680 ms
37,380 KB
testcase_09 AC 742 ms
37,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=22**5
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