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 }

 

posted @ 2017-01-14 14:43  geloutingyu  阅读(176)  评论(0编辑  收藏  举报