結果
| 問題 |
No.521 Cheeses and a Mousetrap(チーズとネズミ捕り)
|
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2018-04-29 21:42:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-27 23:41:25 |
| 合計ジャッジ時間 | 1,793 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 1 |
ソースコード
n, k = [int(i) for i in input().strip().split(" ")]
ans = 0
if k == 0 or k > n:
ans = 0
elif ((n // 2 + 1) == k) and (n != k):
ans = n - 1
else:
ans = n - 2
print(ans)
nbisco