Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
6011 | 张志鹏 | 划拳 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 381 | 2020-08-23 18:48:45 |
#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){ cout<<"DOGFALL"<<endl; continue; } 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; } } return 0; }