题解 | #关灯游戏#
关灯游戏
http://www.nowcoder.com/practice/aeee693b03c84b4aa5027d196905fe70
#include<cstdio>
using namespace std;
int main() {
int n, t;
scanf("%d", &n);
for(int i = 0; i < n; i++)
scanf("%d", &t);
if(t) printf("Alice");
else printf("Bob");
return 0;
}