結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
12,544 KB
testcase_01 AC 117 ms
12,672 KB
testcase_02 AC 111 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 + 100).select { |i| i > 10**5 }.repeated_combination(
			2
	     ).map { |v| v[0] * v[1] }[
			n - 2
	     ]
end
0