結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-02-08 23:22:58 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 425 bytes |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-07-06 11:34:52 |
| 合計ジャッジ時間 | 2,420 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 1 |
コンパイルメッセージ
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 && A == 24
puts 2
elsif B == 24 then
puts 1
elsif B == 25 && A == 24 then
puts 1
elsif B == 25 && A == 25 then
puts 2
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