結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:59:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 82,360 KB |
| 実行使用メモリ | 53,996 KB |
| 最終ジャッジ日時 | 2025-06-12 15:00:12 |
| 合計ジャッジ時間 | 2,773 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 15 |
ソースコード
X, Y, K, P = map(int, input().split())
T = X + Y - K
# Compute S_req
c = 0 if P == 1 else 1
S_req = (Y - c) % 2
# Compute the required parity of F (number of -1's eaten)
# F mod 2 must be (S_req - Y) mod 2
required_sum = (S_req - Y) % 2
# Determine if Alice can win
if required_sum == 0:
print("Alice")
else:
print("Bob")
gew1fw