提交时间:2020-08-14 17:11:10
运行 ID: 5687
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a; for(int i=1;i<=a;i++){ cin>>b>>c; if(b+c<=6){ if(b<c) cout<<"YY"<<endl; if(b>c) cout<<"XDZ"<<endl; if(b==c) cout<<"DOGFALL"<<endl; } if(b+c>6){ if(b<c) cout<<"XDZ"<<endl; if(b>c) cout<<"YY"<<endl; if(b==c) cout<<"DOGFALL"<<endl; } } return 0; }