
结构体
文章平均质量分 85
luer9
假如我年少有为。
展开
-
寒假集训三,EXCEL排序
Excel可以对一组纪录按任意指定列排序。现请你编写程序实现类似功能。Input测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (<=100000) 和 C,其中 N 是纪录的条数,C 是指定排序的列号。以下有 N 行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中没有重复的学号)、姓名(不超过8位且不包含空格的字符串)、成绩(闭区间[0, 100]内的整数)组原创 2018-01-24 20:20:04 · 252 阅读 · 0 评论 -
HDU-5499 SDOI
The Annual National Olympic of Information(NOI) will be held.The province of Shandong hold a Select(which we call SDOI for short) to choose some people to go to the NOI. n(n≤100) people comes to the S...原创 2018-02-27 09:21:11 · 203 阅读 · 0 评论 -
POJ-1581 Contesting Decision
Judging a programming contest is hard work, with demanding contestants, tedious decisions,and monotonous work. Not to mention the nutritional problems of spending 12 hours with only donut...原创 2018-02-27 09:58:51 · 289 阅读 · 0 评论 -
CodeForces - 499 Watching a movie
You have decided to watch the best moments of some movie. There are two buttons on your player:Watch the current minute of the movie. By pressing this button, you watch the current minute of the movie...转载 2018-02-27 20:55:27 · 221 阅读 · 0 评论 -
PAT 1015. 德才论
宋代史学家司马光在《资治通鉴》中有一段著名的“德才论”:“是故才德全尽谓之圣人,才德兼亡谓之愚人,德胜才谓之君子,才胜德谓之小人。凡取人之术,苟不得圣人,君子而与之,与其得小人,不若得愚人。”现给出一批考生的德才分数,请根据司马光的理论给出录取排名。输入格式:输入第1行给出3个正整数,分别为:N(<=105),即考生总数;L(>=60),为录取最低分数线,即德分和才分均不低于L的考生才...转载 2018-03-26 23:21:36 · 202 阅读 · 0 评论 -
HDU - 1263 水果(结构体||map)
水果Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9579 Accepted Submission(s): 3841Problem Description夏天来了~~好开心啊,呵呵,好多好多水果~~Joe经营着一个不大的水果店.他认...原创 2018-05-15 00:21:39 · 249 阅读 · 0 评论 -
HDU - 5131 Song Jiang's rank list
Song Jiang's rank listTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 2232 Accepted Submission(s): 1231Problem Description《Shui Hu Zhuan》,a...原创 2018-07-11 08:11:52 · 167 阅读 · 0 评论 -
关于结构体
关于 初始化。赋值。排序。优先队列的问题; 详细的去 wxj博客看吧。https://blog.youkuaiyun.com/qq_40482358/article/details/81239448结构体初始 重载。 #include <bits/stdc++.h>using namespace std;struct node{ int a,b; node(...转载 2018-08-03 14:17:57 · 157 阅读 · 0 评论