提交时间:2020-08-23 19:12:52

运行 ID: 6052

#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(c<7){ if(a>b) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } else{ if(a<b) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } if(a==b) cout<<"DOGFALL"<<endl; } return 0; }