結果
問題 |
No.2103 ±1s Game
|
ユーザー |
![]() |
提出日時 | 2025-06-12 14:59:42 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 82,772 KB |
実行使用メモリ | 53,612 KB |
最終ジャッジ日時 | 2025-06-12 15:00:22 |
合計ジャッジ時間 | 2,409 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")