結果
問題 |
No.2813 Cookie
|
ユーザー |
|
提出日時 | 2024-07-19 22:03:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 638 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 82,272 KB |
実行使用メモリ | 90,796 KB |
最終ジャッジ日時 | 2024-07-19 22:04:02 |
合計ジャッジ時間 | 6,859 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 29 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #sys.set_int_max_str_digits(0) #input = sys.stdin.readline #n = int(input()) # #alist = [] #s = input() input = sys.stdin.readline t = int(input()) for i in range(t): n = int(input()) a = list(map(int,input().split())) cnt = n x = sum(1 if j % 2 == 0 else 0 for j in a) for j in range(1000000): if cnt % 2 == 0: if x == 0: print(['Bob','Alice'][j % 2]) break x -= 1 cnt += 1 else: cnt -= 1