提交时间:2020-08-23 19:50:42
运行 ID: 6118
#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<<"YY"<<endl; else cout<<"XDZ"<<endl; } } } return 0; }