結果
| 問題 |
No.2814 Block Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-19 22:12:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 76,672 KB |
| 最終ジャッジ日時 | 2024-07-19 22:12:50 |
| 合計ジャッジ時間 | 17,545 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 20 |
ソースコード
def solve(n, S):
if bin(n).count("1") == 1:
print("Alice")
elif n % 2 == 1:
print("Alice")
else:
print("Bob")
for _ in range(int(input())):
n, S = input().split()
solve(int(n), S)