結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,424 KB
testcase_01 WA -
testcase_02 AC 271 ms
15,476 KB
testcase_03 WA -
testcase_04 AC 81 ms
15,632 KB
testcase_05 AC 82 ms
15,428 KB
testcase_06 AC 92 ms
15,452 KB
testcase_07 AC 134 ms
15,468 KB
testcase_08 AC 83 ms
15,512 KB
testcase_09 AC 85 ms
15,496 KB
testcase_10 AC 83 ms
15,436 KB
testcase_11 AC 99 ms
15,436 KB
testcase_12 AC 80 ms
15,640 KB
testcase_13 AC 80 ms
15,508 KB
testcase_14 AC 81 ms
15,552 KB
testcase_15 AC 82 ms
15,456 KB
testcase_16 AC 82 ms
15,432 KB
testcase_17 AC 82 ms
15,436 KB
testcase_18 AC 82 ms
15,440 KB
testcase_19 AC 81 ms
15,636 KB
testcase_20 AC 80 ms
15,428 KB
testcase_21 AC 81 ms
15,608 KB
testcase_22 AC 83 ms
15,404 KB
testcase_23 AC 80 ms
15,556 KB
testcase_24 AC 82 ms
15,468 KB
testcase_25 WA -
testcase_26 AC 82 ms
15,360 KB
testcase_27 AC 83 ms
15,588 KB
testcase_28 AC 83 ms
15,420 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 81 ms
15,636 KB
testcase_32 AC 99 ms
15,404 KB
testcase_33 AC 143 ms
15,556 KB
testcase_34 AC 143 ms
15,408 KB
testcase_35 AC 87 ms
15,468 KB
testcase_36 AC 80 ms
15,404 KB
testcase_37 AC 82 ms
15,616 KB
testcase_38 AC 84 ms
15,468 KB
testcase_39 AC 83 ms
15,412 KB
testcase_40 AC 82 ms
15,456 KB
testcase_41 AC 83 ms
15,436 KB
testcase_42 AC 83 ms
15,476 KB
testcase_43 AC 84 ms
15,548 KB
testcase_44 AC 82 ms
15,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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