結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
15,428 KB
testcase_01 WA -
testcase_02 AC 240 ms
15,356 KB
testcase_03 WA -
testcase_04 AC 70 ms
15,400 KB
testcase_05 AC 67 ms
15,360 KB
testcase_06 AC 79 ms
15,364 KB
testcase_07 AC 117 ms
15,664 KB
testcase_08 AC 69 ms
15,364 KB
testcase_09 AC 67 ms
15,608 KB
testcase_10 AC 69 ms
15,432 KB
testcase_11 AC 86 ms
15,436 KB
testcase_12 AC 68 ms
15,396 KB
testcase_13 AC 69 ms
15,596 KB
testcase_14 AC 68 ms
15,500 KB
testcase_15 AC 68 ms
15,600 KB
testcase_16 AC 69 ms
15,468 KB
testcase_17 AC 67 ms
15,484 KB
testcase_18 AC 67 ms
15,432 KB
testcase_19 AC 71 ms
15,668 KB
testcase_20 AC 69 ms
15,660 KB
testcase_21 AC 67 ms
15,532 KB
testcase_22 AC 82 ms
15,432 KB
testcase_23 AC 84 ms
15,668 KB
testcase_24 AC 69 ms
15,448 KB
testcase_25 AC 69 ms
15,596 KB
testcase_26 AC 69 ms
15,620 KB
testcase_27 AC 68 ms
15,468 KB
testcase_28 AC 70 ms
15,452 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 67 ms
15,456 KB
testcase_32 AC 84 ms
15,604 KB
testcase_33 AC 122 ms
15,436 KB
testcase_34 AC 123 ms
15,656 KB
testcase_35 AC 76 ms
15,592 KB
testcase_36 AC 67 ms
15,436 KB
testcase_37 AC 68 ms
15,400 KB
testcase_38 AC 66 ms
15,356 KB
testcase_39 AC 68 ms
15,492 KB
testcase_40 AC 68 ms
15,396 KB
testcase_41 AC 71 ms
15,660 KB
testcase_42 AC 68 ms
15,428 KB
testcase_43 AC 67 ms
15,396 KB
testcase_44 AC 67 ms
15,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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