题目传送门 1 /* 2 数学:这题一直WA在13组上,看了数据才知道是计算cost时超long long了 3 另外不足一个区间的直接计算个数就可以了 4 */ 5 #include 6 #include 7 #include 8 #include 9 #incl...
分类:
其他好文 时间:
2015-07-19 14:55:30
阅读次数:
89
题目传送门/* DP:先用l,r数组记录前缀后缀上升长度,最大值会在三种情况中产生: 1. a[i-1] + 1 #include #include using namespace std;const int MAXN = 1e5 + 10;const int INF = 0x...
分类:
其他好文 时间:
2015-07-18 19:48:44
阅读次数:
91
题目如下:
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payme...
分类:
其他好文 时间:
2015-07-18 12:41:59
阅读次数:
124
Problem G Big Chocolate Mohammad has recently visited Switzerland . As he loves his friends very much, he decided to buy some chocolate for them, but ...
分类:
其他好文 时间:
2015-07-17 22:23:41
阅读次数:
116
DescriptionMohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine ch...
分类:
其他好文 时间:
2015-07-17 22:21:23
阅读次数:
122
大巧克力问题题目大意:Mohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine ch...
分类:
其他好文 时间:
2015-07-17 22:17:58
阅读次数:
146
(慢慢看题目,O(∩_∩)O~)Mohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fi...
分类:
其他好文 时间:
2015-07-16 22:03:15
阅读次数:
145
Time Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 446ADescriptionDZY has a sequencea, consisting ofnin...
分类:
其他好文 时间:
2015-07-16 18:49:02
阅读次数:
95
ZYB loves Xor I
Accepts: 142
Submissions: 696
Time Limit: 2000/1000 MS (Java/Others)
Memory Limit: 65536/65536 K (Java/Others)
问题描述
ZYB喜欢研究Xor,现在他得到了一个长度为n的数组A。于是他想知道:对于所有数对...
分类:
其他好文 时间:
2015-07-14 22:42:10
阅读次数:
172
http://acm.hdu.edu.cn/showproblem.php?pid=5282
Problem Description
Xuejiejie loves strings most. In order to win the favor of her, a young man has two strings X, Y to
Xuejiejie. Xuejiejie ha...
分类:
其他好文 时间:
2015-07-14 13:45:05
阅读次数:
171