結果
問題 |
No.2103 ±1s Game
|
ユーザー |
![]() |
提出日時 | 2025-06-12 20:21:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,184 KB |
実行使用メモリ | 53,720 KB |
最終ジャッジ日時 | 2025-06-12 20:22:16 |
合計ジャッジ時間 | 2,812 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 10 |
ソースコード
X, Y, K, P = map(int, input().split()) T = X + Y - K target_parity = Y % 2 if P == 1 else (Y - 1) % 2 if T <= Y: if T % 2 == 1: print("Alice") else: print("Bob") else: if (Y % 2) == target_parity: print("Alice") else: print("Bob")