結果
| 問題 | No.3460 Chocolate Divide Game |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2026-03-01 11:17:14 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 466 bytes |
| 記録 | |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 52,824 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-03-01 11:29:19 |
| 合計ジャッジ時間 | 1,635 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3460.cc: No.3460 Chocolate Divide Game - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
/* typedef */
using ll = long long;
/* global variables */
/* subroutines */
/* main */
int main() {
int tn;
scanf("%d", &tn);
while (tn--) {
ll n;
scanf("%lld", &n);
n++;
while (! (n & 1)) n >>= 1;
if (n != 1) puts("Alice");
else puts("Bob");
}
return 0;
}
tnakao0123