結果

問題 No.312 置換処理
ユーザー urutomurutom
提出日時 2017-04-17 18:17:50
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 78 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 11,472 KB
実行使用メモリ 15,636 KB
最終ジャッジ日時 2023-09-26 10:50:16
合計ジャッジ時間 7,055 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,488 KB
testcase_01 WA -
testcase_02 AC 192 ms
15,396 KB
testcase_03 WA -
testcase_04 AC 83 ms
15,596 KB
testcase_05 AC 81 ms
15,416 KB
testcase_06 AC 89 ms
15,416 KB
testcase_07 AC 117 ms
15,540 KB
testcase_08 AC 83 ms
15,548 KB
testcase_09 AC 82 ms
15,488 KB
testcase_10 AC 80 ms
15,416 KB
testcase_11 AC 94 ms
15,396 KB
testcase_12 AC 83 ms
15,396 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 82 ms
15,340 KB
testcase_23 AC 82 ms
15,472 KB
testcase_24 AC 83 ms
15,616 KB
testcase_25 WA -
testcase_26 AC 80 ms
15,484 KB
testcase_27 WA -
testcase_28 AC 80 ms
15,488 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 93 ms
15,352 KB
testcase_33 AC 116 ms
15,572 KB
testcase_34 AC 116 ms
15,604 KB
testcase_35 AC 85 ms
15,344 KB
testcase_36 AC 83 ms
15,392 KB
testcase_37 AC 83 ms
15,532 KB
testcase_38 WA -
testcase_39 AC 81 ms
15,368 KB
testcase_40 AC 83 ms
15,608 KB
testcase_41 AC 82 ms
15,636 KB
testcase_42 AC 84 ms
15,560 KB
testcase_43 AC 84 ms
15,492 KB
testcase_44 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
3.step(n**0.5,2){|i|
	if n%i==0
		puts i.to_i
		exit
	end
}
puts n
0