猫史档案馆


【小实验】一个有趣的试验

用户:爵士OIer爵士OIer查看:0 回复:1 评论:0 创建时间:2019-07-01T20:29:49


#include<bits/stdc++.h>
using namespace std;
struct yingxiong{
string name;
string aihao;
int wm;
int gj;
int fy;
int xl;
};
int main(){
struct yingxiong a,b;
cin>>a.name>>a.aihao>>a.wm>>a.gj>>a.fy>>a.xl;
cout<<endl;
cin>>b.name>>b.aihao>>b.wm>>b.gj>>b.fy>>b.xl;
cout<<endl;
if(a.gj*1.5+a.xl+a.fy*0.5>b.gj*1.5+b.xl+b.fy*0.5)cout<<a.name<<"胜";
else cout<<b.name<<"胜";
return 0;
}

不说了,自己看 应干看得懂。

输入:诸葛亮 算命 100 45 90 35

        张飞 打战 90 70 150 65

输出:张飞胜

自己也可以试试看


回复

上一页1 页 / 共 1下一页
爵士OIer爵士OIer

wm:外貌

点赞0


评论