那天在机房做的同步赛,比现场赛要慢了一小时开始,直播那边已经可以看到榜了,所以上来就知道A和I是水题,当时机房电脑出了点问题,就慢了好几分钟,12分钟才A掉第一题。。。A.Average Score题目大意:给定A序列和B序列,长度分别是n和m,告诉你A序列中的n-1个数和B序列的m个数,求剩下的那...
分类:
其他好文 时间:
2014-10-18 00:37:46
阅读次数:
320
最近突然感觉状态不佳,可能是天冷的缘故?赛后来做牡丹江赛区的题目【A】3819 Average Score -- 签到题【B】【C】【D】【E】【F】【G】【H】【I】【J】【K】3829 Known Notation -- 贪心 + 模拟【A】3819 Average Score -- 签到题Av...
分类:
其他好文 时间:
2014-10-17 00:28:03
阅读次数:
388
根据分数排序和名字字母排序 2 #include 3 #include 4 struct person{ 5 char *name; 6 int score; 7 }; 8 9 int init(struct person *p, char *name, int...
分类:
编程语言 时间:
2014-10-16 22:48:23
阅读次数:
216
Average Score
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathematical A...
分类:
其他好文 时间:
2014-10-16 00:48:01
阅读次数:
428
数据表结构如下:
id??user_name??score
1??????aa???????20
2??????cc???????30
3??????dd???????30
4??????aa???????50
5??????dd??????...
分类:
数据库 时间:
2014-10-15 19:52:51
阅读次数:
203
英文原文:Top 6 Refactoring Patterns to Help You Score 80% in Code Quality 在过去做了不少代码走读,发现了一些代码质量上比较普遍的问题,以下是其中的前五名:臃肿的类:类之所以会臃肿,是因为开发者缺乏对最基本的编码原则,即“单一职责原则....
分类:
其他好文 时间:
2014-10-15 17:11:01
阅读次数:
196
水
Average Score
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathemati...
分类:
其他好文 时间:
2014-10-15 00:07:49
阅读次数:
238
Average Score
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathematical A...
分类:
其他好文 时间:
2014-10-14 21:48:09
阅读次数:
147
ZOJ Problem Set - 3819Average Score
题目链接
题目大意:给你两个班的的学生的分数(A,B班),A班有一个学生的分数没有给出。现在要求你给出这个学生分数的上下限,使得这个学生的分数满足把这个学生拿出A班放到B班,两个班的平均分都提高。
解题思路:
Sa:代表A班的学生除了要求的那种学生的总分;Sb:代表B班同学的学生的总分;
n:代表A班学生...
分类:
其他好文 时间:
2014-10-14 13:41:08
阅读次数:
205
今天遇到一个MYSQL排序的问题,要求按某列进行分组,组内进行排序.百度一下发现MYSQL不支持row_number(),rank()等函数.采用的办法如下,我们首先创建一个测试表:--创建表create table Rank_test(ID int,SCORE int,grp int)--插入数据...
分类:
数据库 时间:
2014-10-13 14:41:59
阅读次数:
502