結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-28 08:26:08 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 95 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-10-04 14:31:27 |
| 合計ジャッジ時間 | 1,903 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 3 WA * 9 |
コンパイルメッセージ
Main.rb:2: warning: found `= literal' in conditional, should be == Syntax OK
ソースコード
a, b = gets.chomp.split(" ").map(&:to_f)
if a = 0
puts 1
else
ans = a/b
puts ans.ceil
end