P9586 题解
zjjc1104111 · · 题解
思路
一道简单的判断题。
因为小
注意:小
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int c1,c2,c3,d1,d2,d3;
cin>>c1>>c2>>c3>>d1>>d2>>d3;
if(c1>d2 || c3>d1) cout<<"C\n";//如果小C的杀比小D的闪多,或者斩比杀多,那么小C胜
else if(d1-c3>c2 || d3>c1) cout<<"D\n";//同上,注意是d1-c3,因为小C可以耗掉对方的杀使平局
else cout<<"E\n";//平局
}
return 0;
}