結果
| 問題 | No.3460 Chocolate Divide Game |
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2026-02-28 14:14:24 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 564 ms / 2,000 ms |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 1,630 ms |
| コンパイル使用メモリ | 165,584 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-02-28 14:14:32 |
| 合計ジャッジ時間 | 6,325 ms |
|
ジャッジサーバーID (参考情報) |
judge7 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
long long n;
cin >> n;
int bc = __builtin_popcountll(n);
cout << (n == (1LL << bc) - 1 ? "Bob" : "Alice") << endl;
}
}
テナガザル