結果
| 問題 |
No.312 置換処理
|
| ユーザー |
urutom
|
| 提出日時 | 2017-04-17 18:41:58 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 106 bytes |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-07-19 05:35:08 |
| 合計ジャッジ時間 | 5,083 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 WA * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
n=gets.to_i
3.step(n**0.5,2){|i|
if n%i==0
puts i.to_i
exit
end
}
puts n%4==0 ? 4 : n%2==0 ? n/2 : n
urutom