結果

問題 No.1748 Parking Lot
ユーザー warabi0906warabi0906
提出日時 2023-03-17 15:03:04
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 11,908 KB
実行使用メモリ 16,112 KB
最終ジャッジ日時 2023-10-18 13:40:03
合計ジャッジ時間 3,506 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
16,112 KB
testcase_01 AC 83 ms
16,112 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 84 ms
16,112 KB
testcase_08 AC 84 ms
16,112 KB
testcase_09 AC 83 ms
16,112 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 87 ms
16,112 KB
testcase_16 AC 86 ms
16,112 KB
testcase_17 AC 86 ms
16,112 KB
testcase_18 AC 84 ms
16,112 KB
testcase_19 AC 83 ms
16,112 KB
testcase_20 WA -
testcase_21 AC 86 ms
16,112 KB
testcase_22 AC 84 ms
16,112 KB
testcase_23 AC 85 ms
16,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N,K=gets.split(" ").map(&:to_i)
if N==1
    puts K
elsif N==K
    puts K-1
else
    puts K+1
end
0