社区讨论
为什么这会T
CF1537D Deleting Divisors参与者 3已保存回复 3
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 3 条
- 当前快照
- 1 份
- 快照标识符
- @lo26peat
- 此快照首次捕获于
- 2023/10/23 08:53 2 年前
- 此快照最后确认于
- 2023/11/03 09:08 2 年前
CPP
// Problem: D. Deleting Divisors
// Contest: Codeforces - Codeforces Round 726 (Div. 2)
// URL: https://codeforces.com/problemset/problem/1537/D
// Memory Limit: 256 MB
// Time Limit: 2000 ms
// Author: Zhong Jiaxuan
// Luogu: 637788
// Email: zhongjiaxuankimi@qq.com
// Tips:
// - INT_MAX = 2147483647
// - INT_MIN = -2147483648
// Tag:
//
// Powered by CP Editor (https://cpeditor.org)
#include <bits/stdc++.h>
#define int long long
#define db double
using namespace std;
map<int, bool> a;
signed main() {
ios::sync_with_stdio(false);
for (int i = 1; (1 << i) <= 10000000000; i += 2)
a[1 << i] = 1;
int t;
cin >> t;
while (t--) {
int n;
cin >> n;
if (n % 2)
puts("Bob");
else if (a[n])
puts("Bob");
else
puts("Alice");
}
}
回复
共 3 条回复,欢迎继续交流。
正在加载回复...