| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5512 | 老师 | 划拳 | C++ | Accepted | 100 | 0 MS | 252 KB | 344 | 2020-08-14 11:00:58 |
#include<bits/stdc++.h> using namespace std; int main(){ int t,x,y; cin>>t; while(t--){ cin>>x>>y; if(x==y) { cout<<"DOGFALL"<<endl; continue; } if(x+y<=6){ if(x>y) cout<<"XDZ"<<endl; else cout<<"YY"<<endl; }else if(x+y>6){ if(x>y) cout<<"YY"<<endl; else cout<<"XDZ"<<endl; } } return 0; }