結果
問題 | No.2813 Cookie |
ユーザー |
|
提出日時 | 2024-07-13 11:44:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 126 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,024 KB |
実行使用メモリ | 77,152 KB |
最終ジャッジ日時 | 2024-07-13 13:06:40 |
合計ジャッジ時間 | 3,806 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 30 |
ソースコード
def calc(x): if x<=4:return [0,1,1,2,2][x] if x%3==1:return (x//3)*4-2 return ((x-1)//3)*4 for i in range(int(input())): N=int(input()) A=list(map(int,input().split())) gru=0 for a in A:gru^=calc(a) print("Bob" if gru==0 else "Alice")