結果

問題 No.312 置換処理
ユーザー letrangerletranger
提出日時 2017-04-09 01:27:08
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 100 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 15,696 KB
最終ジャッジ日時 2023-09-24 23:41:30
合計ジャッジ時間 5,825 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,624 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 83 ms
15,568 KB
testcase_06 AC 85 ms
15,468 KB
testcase_07 AC 102 ms
15,404 KB
testcase_08 AC 81 ms
15,560 KB
testcase_09 AC 83 ms
15,396 KB
testcase_10 AC 84 ms
15,552 KB
testcase_11 AC 89 ms
15,688 KB
testcase_12 AC 82 ms
15,560 KB
testcase_13 AC 82 ms
15,612 KB
testcase_14 AC 82 ms
15,592 KB
testcase_15 AC 82 ms
15,476 KB
testcase_16 AC 82 ms
15,540 KB
testcase_17 AC 81 ms
15,408 KB
testcase_18 AC 82 ms
15,684 KB
testcase_19 AC 84 ms
15,532 KB
testcase_20 AC 82 ms
15,576 KB
testcase_21 AC 82 ms
15,528 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 83 ms
15,404 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 83 ms
15,488 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 84 ms
15,604 KB
testcase_36 AC 82 ms
15,472 KB
testcase_37 AC 84 ms
15,520 KB
testcase_38 AC 85 ms
15,396 KB
testcase_39 AC 83 ms
15,392 KB
testcase_40 AC 84 ms
15,408 KB
testcase_41 AC 81 ms
15,384 KB
testcase_42 AC 81 ms
15,572 KB
testcase_43 AC 81 ms
15,672 KB
testcase_44 AC 83 ms
15,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def f(n)
  (3..(n**0.5).floor).each{|i|
    return i if n % i == 0
  }
end

N = gets.to_i
puts f(N)
0