結果

問題 No.1748 Parking Lot
ユーザー simansiman
提出日時 2021-11-20 15:36:27
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 108 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 15,396 KB
最終ジャッジ日時 2023-09-02 10:13:34
合計ジャッジ時間 3,143 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,072 KB
testcase_01 AC 79 ms
15,168 KB
testcase_02 AC 79 ms
15,152 KB
testcase_03 AC 80 ms
15,272 KB
testcase_04 AC 81 ms
15,148 KB
testcase_05 AC 80 ms
15,120 KB
testcase_06 AC 83 ms
15,268 KB
testcase_07 AC 80 ms
15,252 KB
testcase_08 WA -
testcase_09 AC 80 ms
15,152 KB
testcase_10 AC 80 ms
15,312 KB
testcase_11 AC 81 ms
15,264 KB
testcase_12 AC 82 ms
15,236 KB
testcase_13 AC 81 ms
15,316 KB
testcase_14 AC 80 ms
15,040 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 80 ms
15,124 KB
testcase_21 WA -
testcase_22 AC 80 ms
15,124 KB
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N, K = gets.split.map(&:to_i)

if K == N
  puts K - 1
elsif N == 2 && K == 1
  puts N
else
  puts N - 1
end
0