Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5512 老师 划拳 C++ 通过 100 0 MS 252 KB 344 2020-08-14 11:00:58

Tests(1/1):


#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; }


测评信息: