結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
SHuuuuuuuuuuuuA
|
| 提出日時 | 2019-01-19 16:20:14 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 247 bytes |
| コンパイル時間 | 256 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-18 00:34:56 |
| 合計ジャッジ時間 | 3,140 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 22 |
コンパイルメッセージ
Syntax OK
ソースコード
people = gets.split.map(&:to_i)
if people[0]+1 == people[1]
puts "YES"
puts 0
elsif people[0]+1 > people[1]
puts "YES"
puts people[0]+1 - people[1]
elsif people[0]+1 < people[1]
puts "NO"
puts people[1] - (people[0]+1)
end
SHuuuuuuuuuuuuA