题解 CF1719A

题解 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;
}
posted @ 2022-11-30 09:14  Tyrue  阅读(7)  评论(0编辑  收藏  举报