結果

問題 No.2103 ±1s Game
ユーザー ああいい
提出日時 2022-10-31 14:52:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 672 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 82,784 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-07-08 03:57:26
合計ジャッジ時間 2,648 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

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

A = "Alice"
B = "Bob"
import sys

u = X + Y - K
if u % 2 == 1:
    a = u // 2 + 1
else:
    a = u // 2
b = u // 2
if Y % 2 == 1:
    t = -1
else:
    t = 1

if X <= a:
    if K % 2 == 1 and P == -1:
        print(A)
        exit()
    if K % 2 == 0 and P == 1:
        print(A)
        exit()
if Y <= a:
    if P == 1:
        print(A)
        exit()

if X <= b:
    if K % 2 == 1 and P == 1:
        print(B)
        exit()
    if K % 2 == 0 and P == -1:
        print(B)
        exit()
if Y <= b:
    if P == -1:
        print(B)
        exit()

        



        
    

        
if u % 2 == 0:
    print(B)
else:
    print(A)
    
0