mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
492bdd03ea
1800-1899
19 lines
340 B
C++
19 lines
340 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int a,b,n,q,w;
|
|
long int t;
|
|
scanf("%d",&n);
|
|
while(n--)
|
|
{
|
|
scanf("%d%d%ld",&a,&b,&t);
|
|
q=t%a;w=t%b;
|
|
if(q<w)
|
|
printf("Sempr!\n");
|
|
else if(q==w)
|
|
printf("Both!\n");
|
|
else
|
|
printf("Xiangsanzi!\n");
|
|
}
|
|
}
|