結果

問題 No.2103 ±1s Game
ユーザー roarisroaris
提出日時 2022-10-21 23:22:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 2,573 ms
コンパイル使用メモリ 86,496 KB
実行使用メモリ 71,472 KB
最終ジャッジ日時 2023-09-13 23:29:57
合計ジャッジ時間 5,011 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,164 KB
testcase_01 AC 70 ms
71,232 KB
testcase_02 AC 71 ms
71,216 KB
testcase_03 AC 69 ms
71,444 KB
testcase_04 AC 70 ms
71,348 KB
testcase_05 AC 70 ms
70,968 KB
testcase_06 AC 70 ms
71,348 KB
testcase_07 AC 72 ms
71,472 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 71 ms
71,344 KB
testcase_11 WA -
testcase_12 AC 70 ms
71,088 KB
testcase_13 WA -
testcase_14 AC 70 ms
71,384 KB
testcase_15 AC 71 ms
71,096 KB
testcase_16 AC 69 ms
71,280 KB
testcase_17 AC 70 ms
71,100 KB
testcase_18 AC 69 ms
71,248 KB
testcase_19 AC 70 ms
70,968 KB
testcase_20 WA -
testcase_21 AC 71 ms
71,416 KB
testcase_22 WA -
testcase_23 AC 71 ms
71,336 KB
testcase_24 AC 70 ms
71,116 KB
testcase_25 AC 73 ms
71,424 KB
testcase_26 AC 71 ms
71,092 KB
testcase_27 AC 70 ms
71,096 KB
testcase_28 AC 71 ms
71,304 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 70 ms
71,108 KB
testcase_32 WA -
testcase_33 AC 71 ms
70,940 KB
testcase_34 WA -
testcase_35 AC 69 ms
71,112 KB
testcase_36 AC 68 ms
71,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X, Y, K, P = map(int, input().split())

if Y%2==1:
    if P==1:
        P = -1
    else:
        P = 1

if (K%2==0 and P==1) or (K%2==1 and P==-1):
    c = 1+max(0, Y-K-1)
else:
    c = max(0, Y-K)
    
if c%2==0:
    Q = 1
else:
    Q = -1

if P==Q:
    print('Alice')
else:
    print('Bob')
0