結果
問題 |
No.2103 ±1s Game
|
ユーザー |
|
提出日時 | 2022-10-21 23:28:24 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 689 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 81,648 KB |
実行使用メモリ | 68,704 KB |
最終ジャッジ日時 | 2024-07-01 07:39:14 |
合計ジャッジ時間 | 3,112 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 23 WA * 5 RE * 6 |
ソースコード
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: if X <= A or Y <= A: print("Alice") else: print("Bob") else: if Y <= B: print("Bob") else: print("Alice") else: if P == 1: if X <= B: print("Bob") else: print("Alice") else: assert False