上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: DescriptionThe cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superio... 阅读全文
posted @ 2016-01-17 21:52 DMoon 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1067: [SCOI2007]降雨量 Time Limit: 1 Sec Memory Limit: 162 MBSubmit: 3004 Solved: 767[Submit][Status][Discuss] Description 我们常常会说这样的话:“X年是自Y年以来降雨量最多的”。它的 阅读全文
posted @ 2016-01-09 22:02 DMoon 阅读(402) 评论(0) 推荐(1) 编辑
摘要: Description Input Output 每次x=1时,每行一个整数,表示这次旅行的开心度 Sample Input 4 1 100 5 5 5 1 1 2 2 1 2 1 1 2 2 2 3 1 1 4 Sample Output 101 11 11 HINT 对于100%的数据, n ≤ 阅读全文
posted @ 2016-01-06 16:25 DMoon 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 题目描述Description简单的说,一共N个水果排成一排,切M次,每次切[L,R]区间的所有水果(可能有的水果被重复切),每切完一次输出剩下水果数量数据已重新装配,不会出现OLE错误时限和数据范围适当修改,避免数据包过大而浪费空间资源输入描述Input Description第1行共包括2个正整... 阅读全文
posted @ 2016-01-04 20:43 DMoon 阅读(263) 评论(0) 推荐(0) 编辑
摘要: DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year ... 阅读全文
posted @ 2016-01-04 20:09 DMoon 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionAt the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The boar... 阅读全文
posted @ 2016-01-03 17:24 DMoon 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.For a given sequ... 阅读全文
posted @ 2016-01-03 16:29 DMoon 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Description 现在请求你维护一个数列,要求提供以下两种操作: 1、 查询操作。语法:Q L 功能:查询当前数列中末尾L个数中的最大的数,并输出这个数的值。限制:L不超过当前数列的长度。 2、 插入操作。语法:A n 功能:将n加上t,其中t是最近一次查询操作的答案(如果还未执行过查询操作, 阅读全文
posted @ 2016-01-02 20:27 DMoon 阅读(143) 评论(0) 推荐(0) 编辑
摘要: I Hate ItTime Limit: 9000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18466Accepted Submission(s): 7172Problem ... 阅读全文
posted @ 2016-01-02 19:17 DMoon 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 初学线段树。 1 #include 2 #include 3 #include 4 #include 5 #define N 100000 6 using namespace std; 7 int n,m,ans; 8 int segtree[N*8],a[N*8]; 9 void addd... 阅读全文
posted @ 2016-01-02 19:15 DMoon 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页