結果
問題 | No.414 衝動 |
ユーザー | zazaboon |
提出日時 | 2017-01-29 12:45:56 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 194 bytes |
コンパイル時間 | 64 ms |
コンパイル使用メモリ | 11,316 KB |
実行使用メモリ | 15,692 KB |
最終ジャッジ日時 | 2023-08-25 14:36:33 |
合計ジャッジ時間 | 3,512 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 81 ms
15,612 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 81 ms
15,464 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 83 ms
15,084 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 82 ms
15,464 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.to_i if(n == 1) puts "1 1" exit end (2..(n**0.5).to_i).each do |d| if((n/d.to_f - n/d).abs < 10**(9)) puts "#{d} #{n/d}" exit end end puts "1 #{n}"