結果
問題 | No.414 衝動 |
ユーザー |
|
提出日時 | 2016-10-20 20:12:00 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 153 ms / 1,000 ms |
コード長 | 193 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-15 09:11:20 |
合計ジャッジ時間 | 2,345 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
Syntax OK
ソースコード
m = gets.to_idef get_divisor(n)i = 2x = n / 2while i <= xreturn i if 0 == (n % i)i += 1x = n / iendnilendd = get_divisor(m)puts d ? "#{d} #{m/d}" : "1 #{m}"