結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-21 23:32:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 615 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 82,828 KB |
| 実行使用メモリ | 69,280 KB |
| 最終ジャッジ日時 | 2024-07-01 07:42:58 |
| 合計ジャッジ時間 | 3,213 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 2 |
| other | AC * 16 WA * 5 RE * 13 |
ソースコード
import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd
input = lambda :sys.stdin.buffer.readline()
mi = lambda :map(int,input().split())
li = lambda :list(mi())
X,Y,K,P = mi()
A,B = (X+Y-K+1)//2,(X+Y-K)//2
if pow(-1,K) == P:
if P == 1:
assert False
else:
if X <= A:
print("Alice")
else:
print("Bob")
else:
if P == 1:
if X <= B:
print("Bob")
else:
print("Alice")
else:
assert False