結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-21 22:25:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 593 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 82,196 KB |
| 実行使用メモリ | 54,484 KB |
| 最終ジャッジ日時 | 2024-07-01 06:57:48 |
| 合計ジャッジ時間 | 2,656 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 19 |
ソースコード
import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353
x, y, k, p = mi()
rem = x + y - 1
x -= 1
y -= 1
if x - (rem // 2) > 0 and y - (rem // 2) > 0:
if rem % 2:
print('Bob')
else:
print('Alice')
else:
if x - (rem // 2) == 0:
if (-1) ** (y + 1) == p:
print('Alice')
else:
print('Bob')
else:
if (-1) ** (k - x - 1) == p:
print('Alice')
else:
print('Bob')