結果

問題 No.2103 ±1s Game
ユーザー chineristACchineristAC
提出日時 2022-10-21 23:28:24
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 689 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 82,860 KB
最終ジャッジ日時 2023-09-13 23:34:38
合計ジャッジ時間 6,658 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
74,636 KB
testcase_01 RE -
testcase_02 AC 119 ms
74,808 KB
testcase_03 RE -
testcase_04 AC 118 ms
74,764 KB
testcase_05 AC 117 ms
74,796 KB
testcase_06 AC 115 ms
74,772 KB
testcase_07 RE -
testcase_08 AC 115 ms
74,564 KB
testcase_09 AC 118 ms
74,764 KB
testcase_10 AC 116 ms
74,808 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 AC 114 ms
74,808 KB
testcase_15 AC 115 ms
74,956 KB
testcase_16 AC 114 ms
74,632 KB
testcase_17 RE -
testcase_18 AC 115 ms
74,840 KB
testcase_19 RE -
testcase_20 AC 116 ms
74,968 KB
testcase_21 AC 117 ms
74,528 KB
testcase_22 AC 113 ms
74,616 KB
testcase_23 AC 116 ms
74,576 KB
testcase_24 AC 123 ms
74,904 KB
testcase_25 AC 120 ms
74,512 KB
testcase_26 AC 118 ms
74,636 KB
testcase_27 RE -
testcase_28 AC 116 ms
75,040 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 116 ms
74,824 KB
testcase_32 AC 115 ms
74,600 KB
testcase_33 AC 123 ms
74,924 KB
testcase_34 WA -
testcase_35 AC 116 ms
74,796 KB
testcase_36 AC 118 ms
74,676 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 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

0