結果
| 問題 |
No.2813 Cookie
|
| コンテスト | |
| ユーザー |
mogura
|
| 提出日時 | 2024-07-19 22:56:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 886 bytes |
| コンパイル時間 | 3,586 ms |
| コンパイル使用メモリ | 229,028 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 22:56:13 |
| 合計ジャッジ時間 | 8,860 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 RE * 25 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i,n) for(int i = 0; i < n; i++)
#define all(a) a.begin(),a.end()
#define SORT(a) sort(all(a));
#define MIN(a) *min_element(all(a))
#define MAX(a) *max_element(all(a))
#define SUM(a) accumulate(all(a),0LL)
using ll=long long;
using ld=long double;
using ull=unsigned long;
ll MOD=998244353;
ll inf=1e15;
using mint = static_modint<998244353>;
int main(){
cin.tie(nullptr);
cout.tie(nullptr);
ios::sync_with_stdio(false);
ll T;cin>>T;
vector<ll>grundy(200001);
grundy[1]=1;
grundy[2]=1;
grundy[3]=2;
for(ll i=1;i<=1e5;i++){
if(i%3==1){grundy[i]=(i/3)*4-2;}
else{grundy[i]=((i-1)/3)*4;}
}
while(T--){
ll n;cin>>n;
ll ans=0;
rep(i,n){
ll a;cin>>a;
ans=ans^grundy[a];
}
if(ans!=0)cout<<"Alice"<<endl;
else{cout<<"Bob"<<endl;}
}
}
mogura