結果

問題 No.2103 ±1s Game
ユーザー ShirotsumeShirotsume
提出日時 2022-10-21 23:09:43
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 570 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 86,884 KB
実行使用メモリ 71,568 KB
最終ジャッジ日時 2023-09-13 23:17:31
合計ジャッジ時間 4,793 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,568 KB
testcase_01 AC 73 ms
71,344 KB
testcase_02 AC 73 ms
71,184 KB
testcase_03 AC 72 ms
71,336 KB
testcase_04 AC 72 ms
71,476 KB
testcase_05 AC 70 ms
71,252 KB
testcase_06 AC 73 ms
71,112 KB
testcase_07 AC 71 ms
71,216 KB
testcase_08 AC 71 ms
71,052 KB
testcase_09 AC 72 ms
71,212 KB
testcase_10 AC 71 ms
71,188 KB
testcase_11 AC 72 ms
71,052 KB
testcase_12 AC 71 ms
71,188 KB
testcase_13 AC 70 ms
71,448 KB
testcase_14 AC 71 ms
71,216 KB
testcase_15 AC 71 ms
71,340 KB
testcase_16 AC 69 ms
71,056 KB
testcase_17 AC 71 ms
71,396 KB
testcase_18 AC 70 ms
71,288 KB
testcase_19 AC 71 ms
71,532 KB
testcase_20 AC 70 ms
71,300 KB
testcase_21 AC 70 ms
71,308 KB
testcase_22 AC 69 ms
71,292 KB
testcase_23 AC 69 ms
71,048 KB
testcase_24 AC 70 ms
71,440 KB
testcase_25 AC 71 ms
71,324 KB
testcase_26 AC 70 ms
71,468 KB
testcase_27 AC 70 ms
71,336 KB
testcase_28 AC 69 ms
71,484 KB
testcase_29 AC 71 ms
71,192 KB
testcase_30 AC 72 ms
71,356 KB
testcase_31 AC 72 ms
71,188 KB
testcase_32 AC 73 ms
71,252 KB
testcase_33 AC 71 ms
71,248 KB
testcase_34 AC 71 ms
71,540 KB
testcase_35 AC 72 ms
71,408 KB
testcase_36 AC 72 ms
71,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

x, y, k, p = mi()

if y % 2:
    p = -p
k = (x + y - k)

if y <= (k + 1) // 2 and (-1) ** y == p:
    print('Alice')
    exit()
if x <= (k + 1) // 2 and (-1) ** (k - x) ==p:
    print('Alice')
    exit()

if y <= k // 2 and (-1) ** y != p:
    print('Bob')
    exit()
if x <= k // 2 and (-1) ** (k - x) != p:
    print('Bob')
    exit()

if k % 2:
    print('Alice')
else:
    print('Bob')
0