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