結果

問題 No.2103 ±1s Game
ユーザー Akijin_007Akijin_007
提出日時 2022-10-21 22:20:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 718 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 71,516 KB
最終ジャッジ日時 2023-09-13 22:40:26
合計ジャッジ時間 4,384 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,168 KB
testcase_01 AC 72 ms
70,812 KB
testcase_02 AC 72 ms
71,128 KB
testcase_03 AC 72 ms
71,212 KB
testcase_04 AC 72 ms
70,956 KB
testcase_05 AC 72 ms
71,052 KB
testcase_06 AC 70 ms
70,812 KB
testcase_07 AC 72 ms
70,808 KB
testcase_08 AC 73 ms
71,276 KB
testcase_09 AC 74 ms
71,172 KB
testcase_10 AC 71 ms
70,920 KB
testcase_11 AC 71 ms
70,968 KB
testcase_12 AC 71 ms
71,172 KB
testcase_13 AC 72 ms
70,924 KB
testcase_14 AC 72 ms
70,972 KB
testcase_15 WA -
testcase_16 AC 70 ms
71,132 KB
testcase_17 AC 71 ms
70,968 KB
testcase_18 AC 73 ms
71,120 KB
testcase_19 AC 73 ms
70,960 KB
testcase_20 AC 70 ms
71,176 KB
testcase_21 AC 72 ms
71,128 KB
testcase_22 AC 70 ms
71,356 KB
testcase_23 AC 72 ms
71,148 KB
testcase_24 AC 72 ms
71,164 KB
testcase_25 AC 72 ms
71,128 KB
testcase_26 AC 72 ms
71,084 KB
testcase_27 AC 71 ms
70,956 KB
testcase_28 AC 74 ms
70,972 KB
testcase_29 AC 73 ms
71,236 KB
testcase_30 AC 71 ms
70,808 KB
testcase_31 AC 70 ms
70,932 KB
testcase_32 AC 73 ms
71,216 KB
testcase_33 WA -
testcase_34 AC 72 ms
70,956 KB
testcase_35 AC 73 ms
71,028 KB
testcase_36 AC 73 ms
71,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

X, Y, K, P = map(int, input().split())

ans = 0

t = X + Y - K
a = t // 2 + t % 2
b = t // 2

if t % 2 == 1:
    if a <= min(X, Y):
        ans = 1
    elif X < a:
        if K % 2 == 0 and P == 1:
            ans = 1
        else:
            ans = 2
    else: # Y < a
        if P == 1:
            ans = 1
        else:
            ans = 2
else:
    if b < min(X, Y):
        ans = 2
    elif X <= b:
        if K % 2 == 0 and P == 1:
            ans = 1
        else:
            ans = 2
    else: # Y <= b
        if P == 1:
            ans = 1
        else:
            ans = 2

if ans == 1:
    print("Alice")
else:
    print("Bob")



0