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