結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-21 21:51:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 413 bytes |
| コンパイル時間 | 550 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-01 06:27:50 |
| 合計ジャッジ時間 | 2,232 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 8 |
ソースコード
x, y, k, p = map(int, input().split())
res = x + y - k
def bob(): print("Bob"); exit()
def alice(): print("Alice"); exit()
if (res+1)//2 >= y:
if y % 2 == 1 and p == -1: alice()
if y % 2 == 0 and p == 1: alice()
if res//2 >= y:
if y % 2 == 1 and p == 1: bob()
if y % 2 == 0 and p == -1: bob()
if p==1: x -= 1
else: y -= 1
if res % 2 == 0: bob()
if min(x, y) >= res // 2:
alice()
bob()