codechef NUMGAME2 - "number game revisited" solution: http://ideone.com/ClW68V
#include <iostream>#include <cstdio>
using namespace std;
int main() {
// your code goes here
int t, n;
scanf("%d", &t);
while(t--) {
scanf("%d", &n);
if(n%4==1) printf("ALICE\n");
else printf("BOB\n");
}
return 0;
}
No comments:
Post a Comment