#include <iostream>
#include <cmath>
#include <cstring>
#include <string>
#include <iomanip>
#include <algorithm>
#include <stack>
#include <fstream>
#include <map>
using namespace std; struct A
{
int num;
float sc;
}d[]; bool cmp(A t1,A t2)
{
return (t1.sc>t2.sc);
} int main()
{
float a,b,c,t;
int i=,N=;//评委总数
while(cin>>b&&b)
{//先输入每组大众评审票数,再依次输入评委分数,输入零结束输入
a=;//评委分数和
for(int j=;j<N;j++)
{
cin>>t;
a+=t;
}
a=a/N;
i++;
c=a*0.7+b;
cout<<c<<endl;
d[i].num=i;
d[i].sc=c;
}
sort(d+,d++,cmp);
cout<<"排名"<<endl;
for(int j=;j<=;j++)
{
cout<<d[j].num<<" "<<d[j].sc<<endl;
}
return ;
}

最新文章

  1. BaaS、IaaS、PaaS、SaaS
  2. ps你最容易忽略的知识
  3. maven install时报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
  4. 学习linux内核时常碰到的汇编指令(1)
  5. silverlight 双击事件
  6. EXCEL,熟悉又不熟悉的项目管理工具
  7. oracle 中proc和oci操作对缓存不同处理
  8. 微软职位内部推荐-This Job is no longer available.
  9. IOS 设备信息读取
  10. SQL Server中的临时表和表变量
  11. MyBatis动态SQL与模糊查询
  12. 【Java基础 】Java7 NIO Files,Path 操作文件
  13. app启动页问题
  14. Dubbo框架应用之(一)--服务体系
  15. Atomikos和GTS-Fescar和TCC-Transaction和TX-LCN分布式事物的比较
  16. opencv之模糊处理
  17. 一:理解ASP.NET的运行机制(例:通过HttpModule来计算页面执行时间)
  18. 波士顿法律第一至五季/全集Boston Legal迅雷下载
  19. 第五章 企业项目开发--mybatis注解与xml并用
  20. 栈的应用实例&mdash;&mdash;中缀表达式转换为后缀表达式

热门文章

  1. 用Python操作excel文档
  2. jQuery文档操作之克隆操作
  3. python3网络编程
  4. java动态生成HTML文件
  5. redis远程连接命令
  6. shiro 不使用加密 解决 org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.sh
  7. 在ubuntu16.04-32bits 下编译vlc和vlc-qt开源项目
  8. Chrome Development Tool: [VM] file from javascript
  9. drawable SVG 使用
  10. vue 登录页面填坑