地址:http://acm.hdu.edu.cn/showproblem.php?pid=1718题意:问给定学号在所有成绩里的排名。。。mark:无聊题。1wa,多组输入。。。代码:# include <stdio.h>int a[1100], b[1100] ;int main (){ int i, aa, ans, cnt = 0 ; while (~scanf ("%d", &aa)) { cnt = 0 ; while (~scanf ("%d%d", &a[cnt], &b[cnt])) { if (...
转载
2012-01-11 22:42:00
21阅读
#include #include #include using namespace std;struct cc{ int id; int mark;}a[10000];bool cmp(cc a,cc b) {return (a.mark>b.mark);} int main(){ int m,n; while(scanf("%d",&n)!=EOF) { int i=0; while(scanf("%d%d",&a[i].id,&a[i].mark),a[i].id!=0) i++; int s=i; s...
转载
2013-12-25 16:29:00
65阅读
Rank
原创
2023-08-15 17:21:29
48阅读
就是求2段下降子序列的和的最长,那正向一次LIS,反向一次LIS,然后枚举
原创
2022-08-31 18:19:32
49阅读
RankTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5857 Accepted Submission(s): 2337Problem DescriptionJackson wants to know his
原创
2023-02-20 10:27:14
47阅读
题意:给你n个学号和成绩,并且给定一个学号,让找这个学号是多少名。 析:用个结构体,按成绩排序,然后找那个学号,这个题有一个小坑,那就是并列的情况, 可能并列多少名,这个要考虑一下,其他的easy! 代码如下:
转载
2016-06-03 13:25:00
95阅读
Problem Description Jackson wants to know his rank in the class. The professor has posted a list of student numbers and marks. Compute Jackson’s rank in class; that is, if he has the top mark(or is tied for the top mark) his rank is 1; if he has the second best mark(or is tied) his rank is 2, and so
转载
2013-04-23 19:47:00
43阅读
2评论
Building a Space StationTime Limit: 2 Seconds Memory Limit: 65536 KBYou are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write a computer program to complete the task.The space station is made up with a n...
原创
2021-07-29 16:22:51
86阅读
RankTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4142 Accepted Submission(s): 1607Problem DescriptionJackson wants to know his
原创
2023-04-24 02:52:26
24阅读
Problem Description Jackson wants to know his rank in the class. The professor has posted a list of student numbers and marks. Compute Jackson’s rank in class; that is, if he has the top mark(or is ti
原创
2022-05-14 12:49:45
89阅读
RankTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3980 Accepted Submission(s): 1539Problem DescriptionJackson wants to
原创
2014-12-22 23:04:12
54阅读
本题是利用counting sort的思想去解题。 注意本题,好像利用直接排序,然后查找rank是会直接被判WA的。奇怪的推断系统。 由于分数值的范围是0到100,很小,而student 号码又很大,故此天然的须要利用counting sort的情况。 #include <stdio.h> #inc
转载
2016-04-03 11:05:00
98阅读
2评论
题目传送门 1 /* 2 题意:数据加10组,再删掉第6组数据,问rejudge后最少最多几个作者收到邮件 3 思维题:当错在6时结果是不一定,错在7时是一定改变,因为会变成6 4 思路没错,但用结构题排序一直WA,代码有毒!学习使用set容器。 5 */ 6 #includ...
转载
2015-07-15 21:20:00
35阅读
2评论
P1718 图形复原 P1718 图形复原 P1718 图形复原 题目描述 HWX小朋友对几何的热爱在电脑组是出了名的,号称“每题必解”,这天,LXC在玩logo的时候突然想到了一个题目,刚好可以去测试一下他封号的虚实,于是,他logo编程画了一个n边形,并且将n个顶点用1,2,3,…,n这n个连续
转载
2017-12-10 19:08:00
194阅读
2评论
修补程序:尝试在 Windows Server 2003 或 Windows XP 中安装大型 Windows Installer 程序包或大型 Windows Installer 修补程序包时出现错误消息:“Error 1718. File was rejected by digital signature policy”(错误 1718。文件被数字签名策略拒绝)
这个
转载
2012-07-16 10:15:28
839阅读
Input
原创
2023-02-17 09:25:29
73阅读
全部学习汇总: GreyZhang/bash_basic: my learning note about bash shell. (github.com) 前面发布了一份学习笔记,涉嫌过渡宣传,虽然我也没搞懂为什么。有一系列修改建
原创
2023-05-28 00:49:56
89阅读
传送门其实就是动态维护一个树状数组 , 然后中位数就是区间第(k+1)/2 大我们可以对树状数组二进制拆分 , 如果当前答案加
原创
2022-07-05 10:37:28
36阅读
题目链接:https://codeforces.com/problemset/problem/1781/D 题目大意 给你一个长度为 \(n\) 的数列 \(a_1, a_2, \ldots, a_n\)。 你需要在 \([0, 10^{18}]\) 范围内找到一个整数 \(x\),并将数列 \(a
原创
2024-10-21 11:36:51
35阅读
Problem DescriptionJackson wants to know his rank i
原创
2022-08-16 18:55:21
74阅读