提交时间:2020-08-14 17:30:42

运行 ID: 5704

#include<bits/stdc++.h> using namespace std; int main(){ int t,a,b,num; cin>>t; for(int i=1;i<=t;i++){ cin>>a>>b; num=a+b; if(a<=10&&b<=10){ if(num<=6){ if(a>b) cout<<"XDZ"<<endl; if(a==b) cout<<"DOGFALL"<<endl; if(a<b) cout<<"YY"<<endl; } if(num>6){ if(a>b) cout<<"YY"<<endl; if(a==b) cout<<"DOGFALL"<<endl; if(a<b) cout<<"XDZ"<<endl; } } } return 0; }