51Nod 1067 Bash游戏 V2 | 博弈论 Bash

 

n的数据范围非常大,所以不能用标准SG函数

找规律

 

#include "iostream"
#include "cstdio"
using namespace std;
#define LL long long
#define N 100020
char *s="BABAAAA";

int main()
{
    int T,n;
    cin>>T;
    while(T--){
        cin>>n;
        cout<<s[n%7]<<endl;
    }
    return 0;
}

 

相关文章:

  • 2021-12-19
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案