結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2019-03-20 11:18:09
言語 Crystal
(1.11.2)
結果
AC  
実行時間 850 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 21,207 ms
コンパイル使用メモリ 254,912 KB
実行使用メモリ 36,428 KB
最終ジャッジ日時 2023-09-13 10:03:47
合計ジャッジ時間 26,642 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 850 ms
36,272 KB
testcase_01 AC 823 ms
36,260 KB
testcase_02 AC 737 ms
36,260 KB
testcase_03 AC 757 ms
36,344 KB
testcase_04 AC 789 ms
36,288 KB
testcase_05 AC 741 ms
36,428 KB
testcase_06 AC 795 ms
36,376 KB
testcase_07 AC 820 ms
36,364 KB
testcase_08 AC 811 ms
36,428 KB
testcase_09 AC 809 ms
36,420 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