結果
問題 |
No.485 方程式のお勉強
|
ユーザー |
![]() |
提出日時 | 2017-03-28 17:13:36 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 127 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-07-06 13:24:37 |
合計ジャッジ時間 | 2,269 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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