結果
問題 |
No.2103 ±1s Game
|
ユーザー |
![]() |
提出日時 | 2022-10-22 00:08:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-01 08:08:29 |
合計ジャッジ時間 | 2,234 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
x, y, k, p = map(int, input().split()) z = x+y-k if z%2: if p == 1: print("Bob" if k%2 and x <= z//2 else "Alice") else: print("Bob" if not k%2 and x <= z//2 or y <= z//2 else "Alice") else: if p == 1: print("Alice" if not k%2 and x <= z//2 or y <= z//2 else "Bob") else: print("Alice" if k%2 and x <= z//2 else "Bob")