結果
問題 | No.2103 ±1s Game |
ユーザー |
![]() |
提出日時 | 2022-10-23 04:54:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 621 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-02 01:29:03 |
合計ジャッジ時間 | 2,325 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
X,Y,K,P=map(int,input().split())toru=X+Y-Kif 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")