Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5505 老师 划拳 C++ 解答错误 0 0 MS 248 KB 321 2020-08-14 10:29:48

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int t,x,y; cin>>t; while(t--){ cin>>x>>y; 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; }else{ cout<<"DOGFALL"<<endl; } } return 0; }


测评信息: