题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5882
水题,直接奇偶性判断即可。
#include <cstdio>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <queue>
#include <stack>
#include <string>
#include <map>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long ll;
const int inf=0x3f3f3f3f;
const int N=1e9+2;
int main()
{
int n,m,k;
scanf("%d",&n);
while(n--)
{
scanf("%d",&m);
if(m%2==0)
printf("Bad\n");
else
printf("Balanced\n");
}
return 0;
}