結果
| 問題 |
No.485 方程式のお勉強
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-28 17:15:44 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 2,000 ms |
| コード長 | 132 bytes |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-04 04:22:41 |
| 合計ジャッジ時間 | 2,443 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.split(" ")
a = n[1].to_f / n[0].to_f
if a.to_f % 1 == 0
puts "#{a.to_i}\n"
elsif a.to_f % 1 != 0
puts "NO\n"
end