結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-21 22:18:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 422 bytes |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 81,956 KB |
| 実行使用メモリ | 53,636 KB |
| 最終ジャッジ日時 | 2024-07-01 06:53:48 |
| 合計ジャッジ時間 | 2,624 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 5 |
ソースコード
X,Y,K,P = map(int,input().split())
cnt = X+Y-K #引く回数
A_cnt = cnt//2+cnt%2
B_cnt = cnt//2
if P==1:
if A_cnt >= Y: print("Alice");exit()
if B_cnt >= X: print("Alice");exit()
if A_cnt == B_cnt: print("Bob");exit()
else:print("Alice");exit()
else:
if B_cnt >= Y: print("Bob");exit()
if B_cnt >= X: print("Alice");exit()
if A_cnt == B_cnt: print("Bob");exit()
else:print("Alice");exit()