P4136
题目传送门
首先对于
然后分析
代码
#include<iostream>
using namespace std;
int main() {
int n;
while (cin >> n && n) {
puts(n & 1 ? "Bob" : "Alice");
}
return 0;
}
首先对于
然后分析
#include<iostream>
using namespace std;
int main() {
int n;
while (cin >> n && n) {
puts(n & 1 ? "Bob" : "Alice");
}
return 0;
}