結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
74,652 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 WA -
testcase_06 AC 114 ms
74,848 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 114 ms
74,468 KB
testcase_10 AC 111 ms
74,580 KB
testcase_11 AC 112 ms
74,684 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 113 ms
74,804 KB
testcase_16 AC 114 ms
74,556 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 114 ms
74,572 KB
testcase_22 AC 114 ms
74,368 KB
testcase_23 WA -
testcase_24 RE -
testcase_25 AC 113 ms
74,280 KB
testcase_26 AC 112 ms
74,644 KB
testcase_27 RE -
testcase_28 AC 117 ms
74,564 KB
testcase_29 RE -
testcase_30 AC 114 ms
74,236 KB
testcase_31 AC 115 ms
74,716 KB
testcase_32 AC 114 ms
74,472 KB
testcase_33 AC 116 ms
74,572 KB
testcase_34 AC 114 ms
74,448 KB
testcase_35 WA -
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

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 X <= A:
            print("Alice")
        else:
            print("Bob")
else:
    if P == 1:
        if X <= B:
            print("Bob")
        else:
            print("Alice")
    else:
        assert False

0