結果
| 問題 | No.3460 Chocolate Divide Game |
| コンテスト | |
| ユーザー |
くらげ
|
| 提出日時 | 2026-01-04 17:20:10 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 3,166 ms |
| コンパイル使用メモリ | 333,496 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-02-28 13:02:45 |
| 合計ジャッジ時間 | 7,890 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge7 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
#define rep(i,n) for(int (i) = 0; i<(n); i++)
int main(){
int t;
cin >> t;
assert(1<=t && t<=200000);
rep(_,t){
ll n;
cin >> n;
assert(2<=n && n<=1000000000000000000);
if(popcount((unsigned)(n+1))==1) cout << "Bob" << endl;
else cout << "Alice" << endl;
}
}
くらげ