結果

問題 No.2103 ±1s Game
ユーザー ああいいああいい
提出日時 2022-10-31 13:32:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 674 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 71,676 KB
最終ジャッジ日時 2023-09-22 10:59:16
合計ジャッジ時間 5,875 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,352 KB
testcase_01 AC 72 ms
71,444 KB
testcase_02 AC 71 ms
71,580 KB
testcase_03 AC 75 ms
71,552 KB
testcase_04 AC 70 ms
71,392 KB
testcase_05 AC 69 ms
71,292 KB
testcase_06 AC 70 ms
71,480 KB
testcase_07 AC 69 ms
71,440 KB
testcase_08 AC 71 ms
71,412 KB
testcase_09 WA -
testcase_10 AC 72 ms
71,248 KB
testcase_11 AC 70 ms
71,588 KB
testcase_12 AC 71 ms
71,408 KB
testcase_13 AC 72 ms
71,100 KB
testcase_14 AC 71 ms
71,276 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 70 ms
71,260 KB
testcase_20 AC 72 ms
71,376 KB
testcase_21 AC 71 ms
71,328 KB
testcase_22 AC 70 ms
71,432 KB
testcase_23 AC 69 ms
71,412 KB
testcase_24 AC 71 ms
71,300 KB
testcase_25 AC 71 ms
71,356 KB
testcase_26 AC 70 ms
71,344 KB
testcase_27 WA -
testcase_28 AC 71 ms
71,212 KB
testcase_29 AC 71 ms
71,252 KB
testcase_30 AC 71 ms
71,352 KB
testcase_31 AC 72 ms
71,284 KB
testcase_32 AC 73 ms
71,296 KB
testcase_33 AC 71 ms
71,380 KB
testcase_34 AC 70 ms
71,356 KB
testcase_35 AC 73 ms
71,456 KB
testcase_36 AC 71 ms
71,444 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