提交时间:2020-08-23 19:49:58
运行 ID: 6117
#include<bits/stdc++.h> using namespace std; int q,n,m,x=1,sum=1; int main(){ cin>>q; for(int i=1;i<=q;i++){ cin>>n; cin>>m; if(n==m) cout<<"DOGFALL"<<endl; else{ if(n+m<=6){ if(n>m) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } if(n+m>6){ if(n<m) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } } } return 0; }