結果

問題 No.2103 ±1s Game
ユーザー ntudantuda
提出日時 2022-10-22 02:19:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 496 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-09-14 01:35:17
合計ジャッジ時間 4,742 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,416 KB
testcase_01 AC 72 ms
71,232 KB
testcase_02 AC 72 ms
71,328 KB
testcase_03 AC 72 ms
71,172 KB
testcase_04 AC 74 ms
71,180 KB
testcase_05 AC 72 ms
71,192 KB
testcase_06 AC 72 ms
71,172 KB
testcase_07 AC 72 ms
71,416 KB
testcase_08 AC 71 ms
71,324 KB
testcase_09 AC 72 ms
71,412 KB
testcase_10 AC 72 ms
71,384 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 70 ms
71,212 KB
testcase_15 AC 72 ms
71,176 KB
testcase_16 AC 71 ms
71,196 KB
testcase_17 AC 71 ms
71,208 KB
testcase_18 AC 70 ms
71,440 KB
testcase_19 AC 71 ms
71,196 KB
testcase_20 AC 70 ms
71,424 KB
testcase_21 AC 70 ms
71,484 KB
testcase_22 AC 70 ms
71,188 KB
testcase_23 AC 71 ms
71,368 KB
testcase_24 AC 68 ms
71,172 KB
testcase_25 AC 71 ms
71,452 KB
testcase_26 AC 69 ms
71,192 KB
testcase_27 AC 72 ms
71,468 KB
testcase_28 AC 72 ms
71,412 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 72 ms
71,428 KB
testcase_32 AC 71 ms
71,404 KB
testcase_33 AC 69 ms
71,408 KB
testcase_34 WA -
testcase_35 AC 71 ms
71,564 KB
testcase_36 AC 71 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X, Y, K, P = map(int, input().split())
AB = ["Bob", "Alice"]
A = "Alice"
B = "Bob"
T = X + Y
U = T - K
if K & 1:
    last = A
else:
    last = B
if P == 1 and Y <= -(-U // 2):
    ans = A
elif P == -1 and Y <= U // 2:
    ans = B
elif P == 1 and K & 1 == 0 and X <= -(-U // 2):
    ans = A
elif P == -1 and K & 1 == 1 and X <= -(-U // 2):
    ans = A
elif P == 1 and K & 1 == 1 and X <= U // 2:
    ans = B
elif P == -1 and K & 1 == 0 and X <= U // 2:
    ans = B
else:
    ans = last
print(ans)
0