提交时间:2020-08-14 11:00:58
运行 ID: 5512
#include<bits/stdc++.h> using namespace std; int main(){ int t,x,y; cin>>t; while(t--){ cin>>x>>y; if(x==y) { cout<<"DOGFALL"<<endl; continue; } if(x+y<=6){ if(x>y) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; }else if(x+y>6){ if(x>y) cout<<"YY"<<endl; else cout<<"XDZ"<<endl; } } return 0; }