結果
| 問題 | No.3460 Chocolate Divide Game |
| コンテスト | |
| ユーザー |
tetra4
|
| 提出日時 | 2026-02-28 14:59:43 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| + 562µs | |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 1,910 ms |
| コンパイル使用メモリ | 329,012 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 06:09:25 |
| 合計ジャッジ時間 | 3,659 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
[[maybe_unused]] constexpr ll INF = (1LL << 60) - 1;
void solve() {
ll n;
cin >> n;
bool f = __builtin_popcountll(n + 1) > 1;
cout << (f ? "Alice\n" : "Bob\n");
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll t = 1;
cin >> t;
while (t--) {
solve();
}
return 0;
}
tetra4