結果
問題 |
No.2103 ±1s Game
|
ユーザー |
|
提出日時 | 2022-10-21 22:28:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 408 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-07-01 06:59:44 |
合計ジャッジ時間 | 2,688 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 6 |
ソースコード
x,y,k,p = map(int,input().split()) at = (x+y-k+1)//2 bt = x+y-k-at if p == 1: if at > bt: print("Alice") else: if y > bt: print("Bob") else: print("Alice") else: if at == bt: print("Bob") else: if y % 2 == 1: if y > bt: print("Alice") else: print("Bob") else: if y-1 > bt: print("Alice") else: print("Bob")