提交时间:2020-08-14 17:41:50
运行 ID: 5713
#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b; cin>>n; for(int i=1;i<=n;i++){ cin>>a>>b; if(a+b<=6){ if(a>b) cout<<"XDZ"<<endl; if(a==b) cout<<"DOGFALL"<<endl; if(b>a) cout<<"YY"<<endl; } if(a+b>6){ if(a<b) cout<<"XDZ"<<endl; if(a==b) cout<<"DOGFALL"<<endl; if(b<a) cout<<"YY"<<endl; } } return 0; }}