結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-10-23 04:49:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 620 bytes |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-02 01:26:22 |
| 合計ジャッジ時間 | 2,630 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 8 |
ソースコード
X,Y,K,P=map(int,input().split())
toru=X+Y-K
if toru%2==0:
if X<=toru//2:
if K%2==0 and P==1:
print("Alice")
exit()
if K%2==1 and P==-1:
print("Alice")
exit()
if Y<=toru//2:
if P==1:
print("Alice")
exit()
print("Bob")
else:
if X<=(toru-1)//2:
if K%2==0 and P==1:
print("Bob")
exit()
if K%2==1 and P==-1:
print("Bob")
exit()
if Y<=(toru-1)//2:
if P==1:
print("Bob")
exit()
print("Alice")
titia