提交时间:2020-08-23 19:31:14

运行 ID: 6088

#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; }