比赛 ICPC复现(AI数据) 评测结果 WWWAWWAWAA
题目名称 取石子 最终得分 40
用户昵称 LikableP 运行时间 0.015 s
代码语言 C++ 内存使用 1.56 MiB
提交时间 2026-05-26 20:50:12
显示代码纯文本
#include <cstdio>
#include <algorithm>

int two(int x) {
  int res = 0;
  while (x % 2 == 0) {
    res++;
    x /= 2;
  }
  return res;
}

int n;
int max;

int main() {
  #ifdef LOCAL
    freopen("!input.in", "r", stdin);
    freopen("!output.out", "w", stdout);
  #else
    freopen("shi.in", "r", stdin);
    freopen("shi.out", "w", stdout);
  #endif

  scanf("%d", &n);
  for (int i = 1, num; i <= n; ++i) {
    scanf("%d", &num);
    max += two(num);
  }

  puts(max % 2 ? "Alice" : "Bob");
  return 0;
}