#include#include#includeusing namespace std;struct Student{ int GE,GI,sum,rank,ID; int prefer[6];}STU[40066];struct School{ int want; //各学校招...
分类:
其他好文 时间:
2015-03-07 16:57:51
阅读次数:
134
Rank of Tetris
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5683 Accepted Submission(s): 1622
Problem Description
自从Lele开发了Rating...
分类:
编程语言 时间:
2015-03-07 01:05:01
阅读次数:
209
题目链接:BZOJ - 3196题目分析区间Kth和区间Rank用树状数组套线段树实现,区间前驱后继用线段树套set实现。为了节省空间,需要离线,先离散化,这样需要的数组大小可以小一些,可以卡过128MB = =嗯就是这样,代码长度= =我写了260行......Debug了n小时= =代码#inc...
分类:
编程语言 时间:
2015-03-06 19:06:29
阅读次数:
271
Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking num...
分类:
其他好文 时间:
2015-03-05 00:13:48
阅读次数:
196
SET @amount=0; SET @rank=1; SET @shunxu=0; SELECT tmp2.id AS id,tmp2.name AS NAME,tmp2.amount AS amount,tmp2.rank AS rankFROM (SELECT tmp.id AS id,tm....
分类:
数据库 时间:
2015-03-04 18:23:49
阅读次数:
128
#include#include#includeusing namespace std;struct Student{ int GE,GI,sum,rank,ID; int prefer[6];}STU[40066];struct School{ int want; //各学校招...
分类:
其他好文 时间:
2015-03-02 18:20:07
阅读次数:
170
#include#include#includeusing namespace std;int want[106]; //各学校招生人数struct Student{ int GE,GI,sum,rank,ID; int prefer[6]; bool R; /...
分类:
其他好文 时间:
2015-03-02 16:22:37
阅读次数:
195
#include#include#includeusing namespace std;struct Student{ int ID; int score[6]; int perfect; int sum; int rank;}S[10066];int p[6]; //1-5存题号1...
分类:
其他好文 时间:
2015-03-02 12:46:57
阅读次数:
188
DECLARE @Names TABLE ( name VARCHAR(20));INSERT INTO @Names VALUES ('DeSzmetch'),('DESZMETCH'),('DESZMETCK'),('DesZmetch'),('deszmetch');SELECT nam...
分类:
其他好文 时间:
2015-03-01 17:03:57
阅读次数:
200
#include#includeusing namespace std;struct Student{ char ID[15]; int score,final_rank,location_number,local_rank; //分数,总排名,考场号,场内排名}STU[30010];bool...
分类:
其他好文 时间:
2015-03-01 14:24:00
阅读次数:
127