提交时间:2020-08-23 19:49:04

运行 ID: 6115

#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"; else cout<<"YY"; } if(n+m>6){ if(n<m) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } } } return 0; }