51nod1064(Bash博弈)
题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1067
题意:中文题诶~
思路:直接规律就好了...
代码:
1 #include <bits/stdc++.h>
2 #define MAXN 8
3 using namespace std;
4
5 char vis[MAXN]={"ABAAAAB"};
6
7 int main(void){
8 int t, x;
9 cin >> t;
10 while(t--){
11 cin >> x;
12 int pos=x%7;
13 if(!pos){
14 pos=7;
15 }
16 cout << vis[pos-1] << endl;
17 }
18 return 0;
19 }
我就是我,颜色不一样的烟火 --- geloutingyu