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