結果

問題 No.2103 ±1s Game
ユーザー lloyz
提出日時 2022-10-22 16:31:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 561 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-01 18:03:24
合計ジャッジ時間 2,245 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, k, p = map(int, input().split())
z = x + y - k
if z % 2 == 1:
    if p == 1:
        if k % 2 == 1 and x <= z // 2:
            print("Bob")
        else:
            print("Alice")
    else:
        if k % 2 == 0 and x <= z // 2:
            print("Bob")
        else:
            print("Alice")
else:
    if p == 1:
        if (k % 2 == 0 and x <= z // 2) or y <= z // 2:
            print("Alice")
        else:
            print("Bob")
    else:
        if k % 2 == 1 and x <= z // 2:
            print("Alice")
        else:
            print("Bob")
0