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