题解 CF1719A
这个题判断 \(n+m\) 的奇偶性就可以了。
奇数输出 Burenka
, 偶数输出 Tonya
。
#include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<cstring>
#include<stack>
#include<map>
#define int long long
using namespace std;
int T;
signed main(){
scanf("%lld",&T);
while(T--){
int x,y;
scanf("%lld%lld",&x,&y);
// printf("%lld %lld\n",x,y);
if((x+y)%2==0){
printf("Tonya\n");
}else{
printf("Burenka\n");
}
}
return 0;
}
标签:int,题解,CF1719A,printf,include,lld
From: https://www.cnblogs.com/Tyrue-blog/p/16937412.html