結果
| 問題 |
No.2813 Cookie
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-19 21:51:59 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 433 bytes |
| コンパイル時間 | 3,140 ms |
| コンパイル使用メモリ | 246,456 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 21:52:05 |
| 合計ジャッジ時間 | 5,378 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 WA * 26 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define int long long
void slv(){
int n;cin>>n;
vector<int> a(n);for(auto&&e:a)cin>>e;
int g=0;
for(auto&&e:a){
if(e<=4){
g^=(e+1)/2;
}else{
e-=4;
g^=4*(e/3)+(e%3==2)*2;
}
}
if(g)cout<<"Alice"<<endl;
else cout<<"Bob"<<endl;
}
signed main(){
int t;cin>>t;
while(t--){
slv();
}
}