結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
74,356 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 114 ms
75,000 KB
testcase_06 AC 111 ms
74,672 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 116 ms
74,720 KB
testcase_10 AC 113 ms
74,636 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 112 ms
74,640 KB
testcase_16 AC 110 ms
74,508 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 114 ms
74,364 KB
testcase_22 AC 113 ms
74,740 KB
testcase_23 AC 114 ms
74,468 KB
testcase_24 RE -
testcase_25 AC 116 ms
74,720 KB
testcase_26 AC 114 ms
75,028 KB
testcase_27 RE -
testcase_28 AC 113 ms
74,808 KB
testcase_29 RE -
testcase_30 WA -
testcase_31 AC 114 ms
74,528 KB
testcase_32 AC 113 ms
74,556 KB
testcase_33 AC 114 ms
74,528 KB
testcase_34 WA -
testcase_35 AC 111 ms
74,444 KB
testcase_36 AC 113 ms
74,736 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:
        assert False
    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