結果

問題 No.312 置換処理
ユーザー letrangerletranger
提出日時 2017-04-09 01:28:19
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 111 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 11,368 KB
実行使用メモリ 15,736 KB
最終ジャッジ日時 2023-09-24 23:41:37
合計ジャッジ時間 6,230 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,588 KB
testcase_01 WA -
testcase_02 AC 152 ms
15,400 KB
testcase_03 WA -
testcase_04 AC 79 ms
15,676 KB
testcase_05 AC 79 ms
15,732 KB
testcase_06 AC 83 ms
15,536 KB
testcase_07 AC 101 ms
15,476 KB
testcase_08 AC 80 ms
15,652 KB
testcase_09 AC 81 ms
15,548 KB
testcase_10 AC 81 ms
15,696 KB
testcase_11 AC 87 ms
15,532 KB
testcase_12 AC 80 ms
15,488 KB
testcase_13 AC 82 ms
15,728 KB
testcase_14 AC 85 ms
15,688 KB
testcase_15 AC 80 ms
15,408 KB
testcase_16 AC 81 ms
15,572 KB
testcase_17 AC 82 ms
15,652 KB
testcase_18 AC 80 ms
15,548 KB
testcase_19 AC 84 ms
15,400 KB
testcase_20 AC 80 ms
15,624 KB
testcase_21 AC 80 ms
15,484 KB
testcase_22 AC 82 ms
15,536 KB
testcase_23 AC 80 ms
15,624 KB
testcase_24 AC 85 ms
15,540 KB
testcase_25 WA -
testcase_26 AC 81 ms
15,692 KB
testcase_27 WA -
testcase_28 AC 80 ms
15,532 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 80 ms
15,420 KB
testcase_32 AC 87 ms
15,476 KB
testcase_33 AC 103 ms
15,580 KB
testcase_34 AC 104 ms
15,544 KB
testcase_35 AC 83 ms
15,648 KB
testcase_36 AC 83 ms
15,688 KB
testcase_37 AC 81 ms
15,428 KB
testcase_38 AC 82 ms
15,572 KB
testcase_39 AC 81 ms
15,480 KB
testcase_40 AC 81 ms
15,540 KB
testcase_41 AC 81 ms
15,676 KB
testcase_42 AC 81 ms
15,568 KB
testcase_43 AC 81 ms
15,528 KB
testcase_44 AC 81 ms
15,548 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

N = gets.to_i
puts f(N)
0