提交时间:2020-08-23 19:51:32
运行 ID: 6120
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; for(;a>0;a--){ int x,y; cin>>x>>y; if(x==y) cout<<"DOGFALL"<<endl; else{ if(x+y<=6){ if(x>y) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; }else{ if(x<y) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; } } } return 0; }