結果

問題 No.414 衝動
ユーザー wotsushiwotsushi
提出日時 2016-12-10 20:52:40
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 112 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 11,152 KB
実行使用メモリ 15,536 KB
最終ジャッジ日時 2023-08-30 18:54:27
合計ジャッジ時間 4,378 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,208 KB
testcase_01 AC 81 ms
15,040 KB
testcase_02 AC 79 ms
15,248 KB
testcase_03 AC 178 ms
15,040 KB
testcase_04 AC 81 ms
15,220 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 177 ms
15,036 KB
testcase_10 AC 82 ms
15,192 KB
testcase_11 AC 81 ms
15,204 KB
testcase_12 AC 81 ms
15,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

include Math
M = gets.to_i
m = (2..Math.sqrt(M).ceil).find {|n| M % n == 0}
ans = [m, M / m].join(' ')
puts ans
0