結果

問題 No.312 置換処理
ユーザー gemmarogemmaro
提出日時 2020-05-08 07:12:25
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 11,572 KB
実行使用メモリ 15,652 KB
最終ジャッジ日時 2023-09-16 08:18:04
合計ジャッジ時間 5,946 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
15,340 KB
testcase_01 AC 137 ms
15,480 KB
testcase_02 AC 190 ms
15,496 KB
testcase_03 AC 165 ms
15,304 KB
testcase_04 AC 90 ms
15,240 KB
testcase_05 AC 91 ms
15,332 KB
testcase_06 AC 94 ms
15,584 KB
testcase_07 AC 117 ms
15,432 KB
testcase_08 AC 92 ms
15,300 KB
testcase_09 AC 94 ms
15,408 KB
testcase_10 AC 88 ms
15,316 KB
testcase_11 AC 98 ms
15,420 KB
testcase_12 AC 88 ms
15,184 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 88 ms
15,188 KB
testcase_23 WA -
testcase_24 AC 91 ms
15,244 KB
testcase_25 AC 90 ms
15,240 KB
testcase_26 AC 88 ms
15,204 KB
testcase_27 WA -
testcase_28 AC 88 ms
15,284 KB
testcase_29 AC 88 ms
15,104 KB
testcase_30 AC 98 ms
15,336 KB
testcase_31 WA -
testcase_32 AC 98 ms
15,592 KB
testcase_33 AC 121 ms
15,444 KB
testcase_34 AC 122 ms
15,440 KB
testcase_35 AC 93 ms
15,404 KB
testcase_36 AC 88 ms
15,276 KB
testcase_37 AC 89 ms
15,216 KB
testcase_38 WA -
testcase_39 AC 88 ms
15,212 KB
testcase_40 AC 96 ms
15,104 KB
testcase_41 AC 87 ms
15,308 KB
testcase_42 AC 88 ms
15,140 KB
testcase_43 AC 87 ms
15,308 KB
testcase_44 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

require 'prime'

def solve
  Prime.prime_division(N).map { |a, _| a }.select { |a| a > 2 }.min
end

N = gets.to_i

puts solve
0