結果

問題 No.2103 ±1s Game
ユーザー chineristACchineristAC
提出日時 2022-10-21 23:17:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 577 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 75,072 KB
最終ジャッジ日時 2023-09-13 23:25:36
合計ジャッジ時間 6,018 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
74,720 KB
testcase_01 AC 107 ms
74,388 KB
testcase_02 AC 106 ms
74,464 KB
testcase_03 AC 110 ms
74,800 KB
testcase_04 AC 106 ms
74,396 KB
testcase_05 AC 107 ms
74,472 KB
testcase_06 AC 108 ms
74,512 KB
testcase_07 AC 108 ms
74,676 KB
testcase_08 AC 109 ms
75,028 KB
testcase_09 AC 111 ms
74,516 KB
testcase_10 AC 108 ms
74,392 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 110 ms
74,724 KB
testcase_15 AC 110 ms
74,676 KB
testcase_16 AC 109 ms
74,392 KB
testcase_17 AC 110 ms
74,560 KB
testcase_18 AC 112 ms
74,724 KB
testcase_19 AC 109 ms
75,044 KB
testcase_20 AC 106 ms
74,580 KB
testcase_21 AC 109 ms
74,476 KB
testcase_22 AC 107 ms
74,668 KB
testcase_23 AC 104 ms
74,588 KB
testcase_24 AC 108 ms
75,016 KB
testcase_25 AC 107 ms
74,704 KB
testcase_26 AC 107 ms
74,568 KB
testcase_27 AC 106 ms
74,864 KB
testcase_28 AC 107 ms
74,644 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 105 ms
74,972 KB
testcase_32 AC 110 ms
74,396 KB
testcase_33 AC 112 ms
74,740 KB
testcase_34 WA -
testcase_35 AC 112 ms
74,844 KB
testcase_36 AC 107 ms
74,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 X <= A and pow(-1,K) == P:
    exit(print("Alice"))
if Y <= A and P == 1:
    exit(print("Alice"))
if X <= B and pow(-1,K) != P:
    exit(print("Bob"))
if Y <= B and P == -1:
    exit(print("Bob"))

if K&1:
    print("Alice")
else:
    print("Bob")
0