提交时间:2020-08-23 18:47:08

运行 ID: 6008

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