結果

問題 No.2103 ±1s Game
ユーザー ああいいああいい
提出日時 2022-10-31 13:43:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 791 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 71,580 KB
最終ジャッジ日時 2023-09-22 11:08:50
合計ジャッジ時間 4,699 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,420 KB
testcase_01 AC 71 ms
71,308 KB
testcase_02 AC 73 ms
71,492 KB
testcase_03 AC 72 ms
71,408 KB
testcase_04 AC 71 ms
71,296 KB
testcase_05 AC 70 ms
71,188 KB
testcase_06 AC 69 ms
71,440 KB
testcase_07 AC 70 ms
71,484 KB
testcase_08 AC 71 ms
71,484 KB
testcase_09 WA -
testcase_10 AC 69 ms
71,316 KB
testcase_11 AC 70 ms
71,400 KB
testcase_12 AC 71 ms
71,344 KB
testcase_13 AC 71 ms
71,348 KB
testcase_14 AC 71 ms
71,084 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 72 ms
71,088 KB
testcase_20 AC 71 ms
71,212 KB
testcase_21 AC 71 ms
71,412 KB
testcase_22 AC 73 ms
71,292 KB
testcase_23 AC 72 ms
71,492 KB
testcase_24 AC 71 ms
71,084 KB
testcase_25 AC 70 ms
71,392 KB
testcase_26 AC 71 ms
71,404 KB
testcase_27 WA -
testcase_28 AC 71 ms
71,404 KB
testcase_29 AC 71 ms
71,468 KB
testcase_30 AC 71 ms
71,300 KB
testcase_31 AC 70 ms
71,400 KB
testcase_32 AC 70 ms
71,300 KB
testcase_33 AC 72 ms
71,284 KB
testcase_34 AC 71 ms
71,580 KB
testcase_35 AC 72 ms
71,276 KB
testcase_36 AC 72 ms
71,412 KB
権限があれば一括ダウンロードができます

ソースコード

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 (X + Y - K) % 2 == 1 and P == -1:
        print(A)
        exit()
    if (X + Y - K) % 2 == 0 and P == 1:
        print(A)
        exit()
if Y <= a:
    if P == 1:
        print(A)
        exit()

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


if a == b + 1:
    if X == Y and X == a:
        if P == 1:
            print(B)
            exit()
    

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