結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-22 18:13:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-01 19:15:54 |
| 合計ジャッジ時間 | 2,342 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 3 |
ソースコード
x,y,k,p=list(map(int,input().split()))
if (x+y-k)%2==0:
if y<=x-k and p==1:
print("Alice")
elif x<y-k and pow(-1,x)==p:
print("Alice")
else:
print("Bob")
elif y<=x-k-1 and p==-1:
print("Bob")
elif x<=y-k-1 and pow(-1,x)==p:
print("Bob")
else:
print("Alice")