Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
6081 zhuangshuyi 划拳 C++ Accepted 100 0 MS 248 KB 371 2020-08-23 19:27:17

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b; cin>>n; for(int i=0;i<n;i++){ cin>>a>>b; if(a+b<=6){ if(a>b) cout<<"XDZ"<<endl; if(a<b) cout<<"YY"<<endl; if(a==b) cout<<"DOGFALL"<<endl; } if(a+b>6){ if(a>b) cout<<"YY"<<endl; if(a<b) cout<<"XDZ"<<endl; if(a==b) cout<<"DOGFALL"<<endl; } } return 0; }


Judgement Protocol: