結果

問題 No.2103 ±1s Game
ユーザー 👑 rin204rin204
提出日時 2022-10-28 14:06:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-19 06:49:35
合計ジャッジ時間 5,611 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,072 KB
testcase_01 WA -
testcase_02 AC 77 ms
71,440 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 75 ms
71,124 KB
testcase_06 AC 74 ms
71,312 KB
testcase_07 AC 77 ms
71,312 KB
testcase_08 AC 75 ms
71,204 KB
testcase_09 AC 75 ms
71,124 KB
testcase_10 AC 75 ms
71,372 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 75 ms
71,316 KB
testcase_14 AC 73 ms
71,392 KB
testcase_15 AC 75 ms
71,472 KB
testcase_16 AC 71 ms
71,584 KB
testcase_17 AC 74 ms
71,348 KB
testcase_18 AC 74 ms
71,308 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 78 ms
71,556 KB
testcase_22 AC 74 ms
71,352 KB
testcase_23 AC 75 ms
71,348 KB
testcase_24 WA -
testcase_25 AC 74 ms
71,440 KB
testcase_26 AC 75 ms
71,340 KB
testcase_27 AC 72 ms
71,232 KB
testcase_28 AC 75 ms
71,536 KB
testcase_29 AC 71 ms
71,212 KB
testcase_30 WA -
testcase_31 AC 76 ms
71,076 KB
testcase_32 AC 77 ms
71,392 KB
testcase_33 AC 77 ms
71,392 KB
testcase_34 WA -
testcase_35 AC 76 ms
71,312 KB
testcase_36 AC 74 ms
71,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

r = x + y - k
d = r // 2
if d >= x:
    if k & 1 != p:
        print("Bob")
        exit()
if d >= y:        
    if p == 1:
        print("Bob")
        exit()
print("Alice")
0