結果
| 問題 | No.3460 Chocolate Divide Game |
| コンテスト | |
| ユーザー |
tetra4
|
| 提出日時 | 2026-02-28 14:59:43 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 3,455 ms |
| コンパイル使用メモリ | 332,872 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-02-28 14:59:48 |
| 合計ジャッジ時間 | 5,372 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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