zoukankan
html css js c++ java
PKU 2153
Code
#pragma
warning (disable:4786)
#include
<
map
>
#include
<
string
>
#include
<
iostream
>
#include
<
algorithm
>
using
namespace
std;
typedef
struct
node
{
int
score;
char
name[
32
];
}
node;
node stu[
10000
];
int
main()
{
int
i,num1,num2,score;
scanf(
"
%d
"
,
&
num2);
getchar();
num1
=
num2;
char
str[
32
];
map
<
string
,
int
>
stu;
map
<
string
,
int
>
::iterator p;
while
(num2
--
)
{
gets(str);
stu[str]
=
0
;
}
scanf(
"
%d
"
,
&
num2);
while
(num2
--
)
{
for
(i
=
0
;i
<
num1;i
++
)
{
scanf(
"
%d
"
,
&
score);
getchar();
gets(str);
stu[str]
+=
score;
}
int
rank
=
1
;
int
temp
=
stu[
"
Li Ming
"
];
for
(p
=
stu.begin();p
!=
stu.end();p
++
)
{
if
(p
->
second
>
temp)
rank
++
;
}
printf(
"
%d\n
"
,rank);
}
return
0
;
}
查看全文
相关阅读:
.vsdx 在线查看 省的安装 visio 2013了
桌面整理工具 rolan
第一节、ES6的开发环境搭建
$("[lay-id='"+this.id+"']")
mathAge.call(btn) 函数call 改变函数内 this #js
viewer && ImageFlow 图片滚动组件 图片点击放大 可以滚轮放大缩小 viewer
ie11 突然不能加载外部css 很神奇 头部改为 <!DOCTYPE> <html>
CODE[VS] 1219 骑士游历
CODE[VS] 1169 传纸条
CODE[VS] 1010 过河卒
原文地址:https://www.cnblogs.com/Knuth/p/1562568.html
最新文章
web pack 生成本地dist后 本地可以访问 路径由/ 改 ./
vs code 格式化 美化 html js css 插件 Beautify
vue 模板下只能有一个跟节点 根节点一定要是个div
iView webapp / Mint UI / MUI [前端UI]
前端入门22-讲讲模块化 包括webstrom建立简单ES6
zTree 点击文字 勾选check
formSelects-v4.js 基于Layui的多选解决方案
vs code 用户代码片段 html.json
thisInObject
浏览器用户脚本—打造自己的专属页面
热门文章
$("[lay-id='demo'] tbody tr[data-index=0]") 查找某行layui table
ztree 展开一级节点 | ztree只显示到二级目录
[转]解决右键用notepad++打开提示【ShellExecute failed (2): Is this command Correct? (Fix) 】
webstorm 创建es6项目 babel 转 es5
vue2.0学习——使用webstorm创建一个vue项目
用npm来部署快速一个httpweb服务器
关于 <script type='text/template' > 的妙用 / 使用jquery获取iframe加载完成事件
requireJS
underscore _ 对象封装 遍历
smartgit 用于下载gif库代码的软件
Copyright © 2011-2022 走看看