結果

問題 No.3035 2018
ユーザー letrangerjpletrangerjp
提出日時 2018-04-02 00:26:32
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 123 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 19,800 KB
最終ジャッジ日時 2023-09-08 13:10:20
合計ジャッジ時間 4,509 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

require "prime"
N = gets.to_i
x = 0
N.times{
  x += 1
  x += 1 while x.prime_division.map{|pr, n|n+1}.inject(:*) != 4
}
p x
0