提交时间:2020-08-23 19:06:32
运行 ID: 6039
#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<=6) { if(a>b)cout<<"XDZ"; else if(a<b)cout<<"YY"; else cout<<"DOGFALL"; cout<<endl; } else { if(a<b)cout<<"XDZ"; else if(a>b)cout<<"YY"; else cout<<"DOGFALL"; cout<<endl; } } return 0; }