結果

問題 No.2103 ±1s Game
ユーザー 👑 rin204rin204
提出日時 2022-10-28 13:59:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 361 bytes
コンパイル時間 767 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 71,668 KB
最終ジャッジ日時 2023-09-19 06:43:42
合計ジャッジ時間 6,205 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,104 KB
testcase_01 AC 72 ms
71,276 KB
testcase_02 AC 73 ms
71,072 KB
testcase_03 AC 72 ms
71,424 KB
testcase_04 AC 72 ms
71,224 KB
testcase_05 AC 71 ms
71,272 KB
testcase_06 AC 72 ms
71,152 KB
testcase_07 AC 71 ms
71,072 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 72 ms
71,220 KB
testcase_11 AC 71 ms
71,344 KB
testcase_12 AC 73 ms
71,108 KB
testcase_13 AC 73 ms
71,296 KB
testcase_14 AC 72 ms
71,296 KB
testcase_15 WA -
testcase_16 AC 73 ms
71,484 KB
testcase_17 WA -
testcase_18 AC 73 ms
71,232 KB
testcase_19 AC 71 ms
71,440 KB
testcase_20 AC 73 ms
71,272 KB
testcase_21 AC 73 ms
71,468 KB
testcase_22 AC 71 ms
71,104 KB
testcase_23 AC 71 ms
70,984 KB
testcase_24 AC 73 ms
71,504 KB
testcase_25 AC 72 ms
71,164 KB
testcase_26 AC 72 ms
71,384 KB
testcase_27 WA -
testcase_28 AC 71 ms
71,308 KB
testcase_29 AC 73 ms
71,272 KB
testcase_30 AC 73 ms
71,296 KB
testcase_31 WA -
testcase_32 AC 73 ms
71,072 KB
testcase_33 WA -
testcase_34 AC 72 ms
71,192 KB
testcase_35 AC 73 ms
71,104 KB
testcase_36 AC 74 ms
71,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, k, p = map(int, input().split())
if p == 1:
    p = 0
else:
    p = 1

r = x + y - k
def solve():
    d = r // 2

    if d > x:
        if y & 1 != p & 1:
            return 1
    if d > y:
        if p == 0:
            return 1
    return 0


if r & 1:
    ans = solve()
else:
    ans = 1 ^ solve()
if ans == 0:
    print("Alice")
else:
    print("Bob")
0