标签:print 简单 string str div output 游戏 ash sha
第1行:一个数T,表示后面用作输入测试的数的数量。(1 <= T <= 10000) 第2 - T + 1行:每行2个数N,K。中间用空格分隔。(1 <= N,K <= 10^9)
共T行,如果A获胜输出A,如果B获胜输出B。
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int t; for(cin>>t;t--;){
int n,k; cin>>n>>k;
printf("%c\n",n%(k+1)?‘A‘:‘B‘);
}
return 0;
}
标签:print 简单 string str div output 游戏 ash sha
原文地址:http://www.cnblogs.com/redips-l/p/7979313.html