题目链接:hdu5882 Balanced Game题解:每种手势的攻防数一样,不难想到n为奇数时游戏平衡。 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int main(){ int t, x; scanf("%d", &t); while(t--){ scanf("%d", &x); if(x & ) puts("Balanced"); else puts("Bad"); } return ; }