結果
問題 |
No.485 方程式のお勉強
|
ユーザー |
|
提出日時 | 2017-03-28 17:14:38 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 127 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-07-06 13:24:40 |
合計ジャッジ時間 | 1,967 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 7 WA * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.split(" ") a = n[1].to_f / n[0].to_f if a.to_f % 1 == 0 puts "#{a}\n" elsif a.to_f % 1 != 0 puts "NO\n" end