結果
| 問題 |
No.2088 数当てゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-30 21:24:13 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 150 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-12-22 22:06:03 |
| 合計ジャッジ時間 | 5,343 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 RE * 20 |
コンパイルメッセージ
Main.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-' operator Main.rb:12: warning: possibly useless use of - in void context Syntax OK
ソースコード
A = gets.to_f
B = gets.to_f
if A == 1
if B == 0
puts 1
exit
else
puts -1
exit
end
end
puts - B / (A - 1.0)