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