結果
問題 |
No.2814 Block Game
|
ユーザー |
|
提出日時 | 2024-07-15 19:28:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 533 ms / 2,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 82,500 KB |
実行使用メモリ | 77,100 KB |
最終ジャッジ日時 | 2024-07-15 19:31:33 |
合計ジャッジ時間 | 12,860 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 20 |
ソースコード
T=int(input()) for i in range(T): N,S=input().split() if int(N)<=2:print("Alice" if S=="Odd" else "Bob") elif (int(N)&-int(N))==int(N):print("Alice" if S=="Even" else "Bob") else:print("Alice" if int(N)%2 else "Bob")