結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
15,456 KB
testcase_01 AC 188 ms
15,336 KB
testcase_02 AC 240 ms
15,608 KB
testcase_03 AC 243 ms
15,612 KB
testcase_04 AC 69 ms
15,672 KB
testcase_05 AC 68 ms
15,612 KB
testcase_06 AC 80 ms
15,488 KB
testcase_07 AC 122 ms
15,636 KB
testcase_08 AC 71 ms
15,464 KB
testcase_09 AC 68 ms
15,476 KB
testcase_10 AC 70 ms
15,532 KB
testcase_11 AC 89 ms
15,368 KB
testcase_12 AC 72 ms
15,512 KB
testcase_13 AC 69 ms
15,428 KB
testcase_14 AC 68 ms
15,656 KB
testcase_15 AC 69 ms
15,652 KB
testcase_16 AC 71 ms
15,332 KB
testcase_17 AC 71 ms
15,400 KB
testcase_18 AC 70 ms
15,592 KB
testcase_19 AC 69 ms
15,492 KB
testcase_20 AC 67 ms
15,608 KB
testcase_21 AC 69 ms
15,516 KB
testcase_22 AC 68 ms
15,528 KB
testcase_23 WA -
testcase_24 AC 70 ms
15,400 KB
testcase_25 AC 69 ms
15,600 KB
testcase_26 AC 69 ms
15,400 KB
testcase_27 WA -
testcase_28 AC 69 ms
15,528 KB
testcase_29 AC 69 ms
15,468 KB
testcase_30 AC 90 ms
15,324 KB
testcase_31 AC 69 ms
15,456 KB
testcase_32 AC 86 ms
15,484 KB
testcase_33 AC 124 ms
15,616 KB
testcase_34 AC 126 ms
15,600 KB
testcase_35 AC 74 ms
15,436 KB
testcase_36 AC 68 ms
15,464 KB
testcase_37 AC 69 ms
15,608 KB
testcase_38 AC 67 ms
15,592 KB
testcase_39 AC 68 ms
15,444 KB
testcase_40 AC 72 ms
15,452 KB
testcase_41 AC 69 ms
15,436 KB
testcase_42 AC 68 ms
15,336 KB
testcase_43 AC 71 ms
15,588 KB
testcase_44 AC 71 ms
15,612 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:n].min
0