結果

問題 No.521 Cheeses and a Mousetrap(チーズとネズミ捕り)
ユーザー KenzoKenzo
提出日時 2017-06-03 00:54:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 11,720 KB
実行使用メモリ 10,084 KB
最終ジャッジ日時 2023-10-22 02:14:09
合計ジャッジ時間 2,237 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,084 KB
testcase_01 WA -
testcase_02 AC 29 ms
10,084 KB
testcase_03 AC 30 ms
10,084 KB
testcase_04 AC 29 ms
10,084 KB
testcase_05 AC 30 ms
10,084 KB
testcase_06 AC 29 ms
10,084 KB
testcase_07 AC 29 ms
10,084 KB
testcase_08 AC 30 ms
10,084 KB
testcase_09 AC 29 ms
10,084 KB
testcase_10 AC 29 ms
10,084 KB
testcase_11 AC 29 ms
10,084 KB
testcase_12 AC 29 ms
10,084 KB
testcase_13 AC 29 ms
10,084 KB
testcase_14 AC 29 ms
10,084 KB
testcase_15 AC 29 ms
10,084 KB
testcase_16 WA -
testcase_17 AC 29 ms
10,084 KB
testcase_18 WA -
testcase_19 AC 31 ms
10,084 KB
testcase_20 WA -
testcase_21 AC 29 ms
10,084 KB
testcase_22 WA -
testcase_23 AC 30 ms
10,084 KB
testcase_24 WA -
testcase_25 AC 29 ms
10,084 KB
testcase_26 AC 29 ms
10,084 KB
testcase_27 AC 30 ms
10,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())

if B > A or B == 0 or A==1:
    print("0", end='')
elif A/B == 1 and A%B==(B-1):
    print(A-1, end='')
else:
    print(A-2, end='')
0