結果

問題 No.312 置換処理
ユーザー mmmpppmmmppp
提出日時 2017-03-02 02:05:24
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 83 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 11,452 KB
実行使用メモリ 15,684 KB
最終ジャッジ日時 2023-09-03 17:23:19
合計ジャッジ時間 6,789 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,404 KB
testcase_01 AC 209 ms
15,508 KB
testcase_02 AC 271 ms
15,636 KB
testcase_03 AC 274 ms
15,500 KB
testcase_04 AC 81 ms
15,532 KB
testcase_05 AC 80 ms
15,432 KB
testcase_06 AC 90 ms
15,608 KB
testcase_07 AC 133 ms
15,380 KB
testcase_08 AC 81 ms
15,568 KB
testcase_09 AC 79 ms
15,404 KB
testcase_10 AC 81 ms
15,468 KB
testcase_11 AC 98 ms
15,496 KB
testcase_12 AC 80 ms
15,540 KB
testcase_13 AC 79 ms
15,496 KB
testcase_14 AC 85 ms
15,384 KB
testcase_15 AC 79 ms
15,436 KB
testcase_16 AC 78 ms
15,404 KB
testcase_17 AC 80 ms
15,612 KB
testcase_18 AC 80 ms
15,592 KB
testcase_19 AC 80 ms
15,652 KB
testcase_20 AC 83 ms
15,424 KB
testcase_21 AC 81 ms
15,660 KB
testcase_22 AC 80 ms
15,516 KB
testcase_23 WA -
testcase_24 AC 81 ms
15,588 KB
testcase_25 AC 80 ms
15,500 KB
testcase_26 AC 81 ms
15,568 KB
testcase_27 WA -
testcase_28 AC 81 ms
15,648 KB
testcase_29 AC 81 ms
15,348 KB
testcase_30 AC 107 ms
15,508 KB
testcase_31 AC 84 ms
15,436 KB
testcase_32 AC 99 ms
15,516 KB
testcase_33 AC 140 ms
15,468 KB
testcase_34 AC 143 ms
15,596 KB
testcase_35 AC 86 ms
15,580 KB
testcase_36 AC 84 ms
15,408 KB
testcase_37 AC 83 ms
15,404 KB
testcase_38 AC 80 ms
15,412 KB
testcase_39 AC 80 ms
15,560 KB
testcase_40 AC 80 ms
15,372 KB
testcase_41 AC 80 ms
15,576 KB
testcase_42 AC 80 ms
15,684 KB
testcase_43 AC 80 ms
15,656 KB
testcase_44 AC 80 ms
15,660 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=f=gets.to_i
f/=2while f&1<1
(3..n**0.5+1).any?{|i|n%i<1&&f=i}
p [f,n%4>0?n:4].min
0