結果
| 問題 | No.2103 ±1s Game |
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2022-10-22 00:08:49 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-22 04:39:33 |
| 合計ジャッジ時間 | 4,931 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
ニックネーム