結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-02-08 23:11:21 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-01 11:44:43 |
| 合計ジャッジ時間 | 3,301 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 12 WA * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
A,B = gets.split(" ").map!{|i| i.to_i}
if B < 23 then
puts 3
elsif B == 23 then
puts 2
elsif B == 24 then
puts 1
elsif B == 25 && A == 24 then
puts 1
elsif B == 25 && A <= 23 then
puts 0
elsif B >= 26 && A == 25 then
puts 2
elsif B >= 26 && A == 24 then
puts 1
elsif A <= 26 then
puts 3
elsif A <= 23 && B >= 25 then
puts 0
end