結果

問題 No.3035 2018
ユーザー cielciel
提出日時 2018-04-03 00:24:19
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 173 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 11,428 KB
実行使用メモリ 20,208 KB
最終ジャッジ日時 2023-09-08 13:47:50
合計ジャッジ時間 4,355 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
19,712 KB
testcase_01 AC 90 ms
15,360 KB
testcase_02 AC 92 ms
15,308 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'
p Enumerator.new{|y|
	(2..1/0.0).each{|i|
		a=i.prime_division
		y<<i if (a.size==2&&a.all?{|e|e[1]==1}) || (a.size==1&&a[0][1]==3)
	}
}.take(gets.to_i).last
0