結果

問題 No.2103 ±1s Game
ユーザー 👑 zeronosu77108zeronosu77108
提出日時 2022-10-21 22:05:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 518 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 10,784 KB
実行使用メモリ 8,232 KB
最終ジャッジ日時 2023-09-13 22:23:07
合計ジャッジ時間 2,214 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,048 KB
testcase_01 AC 15 ms
8,068 KB
testcase_02 AC 15 ms
8,096 KB
testcase_03 AC 15 ms
8,224 KB
testcase_04 AC 16 ms
8,180 KB
testcase_05 AC 15 ms
8,188 KB
testcase_06 AC 15 ms
8,120 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
8,164 KB
testcase_12 AC 16 ms
8,184 KB
testcase_13 AC 15 ms
8,060 KB
testcase_14 AC 15 ms
8,184 KB
testcase_15 WA -
testcase_16 AC 15 ms
8,064 KB
testcase_17 WA -
testcase_18 AC 15 ms
8,112 KB
testcase_19 AC 16 ms
8,044 KB
testcase_20 AC 15 ms
8,068 KB
testcase_21 AC 16 ms
8,096 KB
testcase_22 AC 16 ms
8,076 KB
testcase_23 AC 15 ms
8,192 KB
testcase_24 AC 15 ms
8,024 KB
testcase_25 AC 16 ms
8,020 KB
testcase_26 AC 16 ms
8,176 KB
testcase_27 AC 16 ms
8,020 KB
testcase_28 WA -
testcase_29 AC 16 ms
8,156 KB
testcase_30 AC 15 ms
8,192 KB
testcase_31 AC 16 ms
8,152 KB
testcase_32 AC 16 ms
8,196 KB
testcase_33 WA -
testcase_34 AC 16 ms
8,232 KB
testcase_35 AC 16 ms
8,076 KB
testcase_36 AC 16 ms
8,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, k, p = map(int, input().split())

res = x + y - k

def bob(): print("Bob"); exit()
def alice(): print("Alice"); exit()

if (res+1)//2 >= y:
    if y % 2 == 1 and p == -1: alice()
    if y % 2 == 0 and p == 1: alice()

if res//2 >= y:
    if y % 2 == 1 and p == 1: bob()
    if y % 2 == 0 and p == -1: bob()

if p==1: x -= 1
else: y -= 1

if res % 2 == 0: bob()


if min(x, y) >= res // 2:
    alice()


if x < y:
    if (res - x) % 2 == 0 and p == -1: alice()
    if (res - x) % 2 == 1 and p == 1: alice()

bob()
0