結果

問題 No.1058 素敵な数
ユーザー hogeover30hogeover30
提出日時 2020-05-22 21:32:39
言語 Ruby
(3.3.0)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 13,056 KB
最終ジャッジ日時 2024-04-15 16:01:21
合計ジャッジ時間 2,026 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
12,928 KB
testcase_01 AC 126 ms
12,672 KB
testcase_02 AC 124 ms
12,928 KB
testcase_03 AC 123 ms
12,672 KB
testcase_04 AC 124 ms
12,928 KB
testcase_05 AC 124 ms
13,056 KB
testcase_06 AC 125 ms
12,800 KB
testcase_07 AC 122 ms
12,800 KB
testcase_08 AC 121 ms
12,928 KB
testcase_09 AC 125 ms
13,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'
a=Prime.each(100200).to_a.select{|e|e>10**5}
b=[1]+a.repeated_combination(2).map{|x,y|x*y}.sort
puts b[gets.to_i-1]
0