提交时间:2020-08-14 16:56:12
运行 ID: 5663
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a; cin>>a; for(int i=1;i<=a;i++){ cin>>n>>m; if(n=m) cout<<"DOGFALL"; if(n+m<=6){ if(n>m){ cout<<"XDZ"; } else cout<<"YY"; } else{ if(n<m){ cout<<"DOGFALL"; } else cout<<"YY"; } } return 0; }