結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,604 KB
testcase_01 AC 195 ms
15,448 KB
testcase_02 AC 245 ms
15,412 KB
testcase_03 AC 240 ms
15,408 KB
testcase_04 AC 71 ms
15,608 KB
testcase_05 AC 71 ms
15,580 KB
testcase_06 AC 80 ms
15,412 KB
testcase_07 AC 114 ms
15,524 KB
testcase_08 AC 68 ms
15,396 KB
testcase_09 AC 68 ms
15,608 KB
testcase_10 AC 69 ms
15,452 KB
testcase_11 AC 83 ms
15,648 KB
testcase_12 AC 70 ms
15,676 KB
testcase_13 AC 68 ms
15,724 KB
testcase_14 AC 70 ms
15,600 KB
testcase_15 AC 70 ms
15,400 KB
testcase_16 AC 74 ms
15,520 KB
testcase_17 AC 69 ms
15,324 KB
testcase_18 AC 70 ms
15,372 KB
testcase_19 AC 68 ms
15,376 KB
testcase_20 AC 67 ms
15,488 KB
testcase_21 AC 68 ms
15,612 KB
testcase_22 AC 68 ms
15,576 KB
testcase_23 WA -
testcase_24 AC 70 ms
15,408 KB
testcase_25 AC 71 ms
15,416 KB
testcase_26 AC 71 ms
15,612 KB
testcase_27 WA -
testcase_28 AC 68 ms
15,652 KB
testcase_29 AC 67 ms
15,440 KB
testcase_30 AC 88 ms
15,332 KB
testcase_31 AC 68 ms
15,624 KB
testcase_32 AC 86 ms
15,452 KB
testcase_33 AC 126 ms
15,720 KB
testcase_34 AC 123 ms
15,488 KB
testcase_35 AC 73 ms
15,488 KB
testcase_36 AC 67 ms
15,384 KB
testcase_37 AC 70 ms
15,460 KB
testcase_38 AC 72 ms
15,664 KB
testcase_39 AC 74 ms
15,368 KB
testcase_40 AC 73 ms
15,668 KB
testcase_41 AC 70 ms
15,436 KB
testcase_42 AC 69 ms
15,652 KB
testcase_43 AC 69 ms
15,600 KB
testcase_44 AC 76 ms
15,584 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<1?4:f].min
0