提交时间:2020-08-14 17:06:14

运行 ID: 5674

#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"; continue; } if(n+m<=6){ if(n>m){ cout<<"XDZ"; } else cout<<"YY"; } else{ if(n<m){ cout<<"XDZ"; } else cout<<"YY"; } } return 0; }