結果

問題 No.1058 素敵な数
ユーザー yuruhiyayuruhiya
提出日時 2020-05-25 14:46:46
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 13,312 KB
最終ジャッジ日時 2024-04-21 03:44:04
合計ジャッジ時間 2,011 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

require 'prime'
n = gets.to_i
if n == 1
	puts 1
else
	puts Prime.each(10**5 + 1000).select { |i| i > 10**5 }.repeated_combination(
			2
	     ).map { |v| v[0] * v[1] }[
			n - 2
	     ]
end
0