提交时间:2020-08-23 19:19:11

运行 ID: 6064

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ int a,b; cin>>a>>b; int c=a+b; if(a==b){ cout<<"DOGFALL"<<endl; continue; } if(c<7){ if(a>b) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } else{ if(a<b) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } } return 0; }///////////