結果

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

テストケース

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

ソースコード

diff #

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

if B > A or B == 0 or A==1:
    print("0")
elif A%B==(B-1):
    print(A-1)
else:
    print
0