結果

問題 No.2103 ±1s Game
ユーザー ああいいああいい
提出日時 2022-10-31 14:01:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 702 bytes
コンパイル時間 754 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 71,556 KB
最終ジャッジ日時 2023-09-22 11:26:47
合計ジャッジ時間 5,084 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,188 KB
testcase_01 AC 70 ms
71,376 KB
testcase_02 AC 70 ms
71,368 KB
testcase_03 AC 70 ms
71,232 KB
testcase_04 AC 71 ms
71,036 KB
testcase_05 AC 71 ms
71,172 KB
testcase_06 AC 71 ms
71,104 KB
testcase_07 AC 70 ms
71,060 KB
testcase_08 AC 71 ms
71,308 KB
testcase_09 AC 71 ms
71,048 KB
testcase_10 AC 70 ms
71,196 KB
testcase_11 AC 70 ms
71,260 KB
testcase_12 AC 71 ms
71,252 KB
testcase_13 AC 69 ms
71,528 KB
testcase_14 AC 70 ms
71,324 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 73 ms
71,284 KB
testcase_20 AC 73 ms
71,220 KB
testcase_21 AC 69 ms
71,224 KB
testcase_22 AC 69 ms
71,304 KB
testcase_23 AC 70 ms
71,556 KB
testcase_24 AC 71 ms
71,352 KB
testcase_25 AC 70 ms
71,164 KB
testcase_26 AC 70 ms
71,404 KB
testcase_27 WA -
testcase_28 AC 69 ms
71,444 KB
testcase_29 AC 71 ms
71,064 KB
testcase_30 AC 72 ms
71,080 KB
testcase_31 AC 72 ms
71,228 KB
testcase_32 AC 70 ms
71,052 KB
testcase_33 AC 70 ms
71,276 KB
testcase_34 AC 71 ms
71,260 KB
testcase_35 AC 70 ms
71,044 KB
testcase_36 AC 69 ms
71,196 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 u % 2 == 0:
    print(B)
else:
    print(A)
    
0