http://acm.hdu.edu.cn/showproblem.php?pid=4893
三种操作:
1 k d - "add"
2 l r - "query sum"
3 l r - "change to nearest Fibonacci"
节点附件三个值:
s1:由lazy控制的区间的正确的和。
s2:区间内与所有数相近的fib数之和,随着单点更新而更新...
分类:
其他好文 时间:
2014-08-05 09:39:19
阅读次数:
309
Word BreakGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words....
分类:
其他好文 时间:
2014-08-05 03:04:18
阅读次数:
239
F - Sequence
Time Limit:6000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Given m sequences, each contains n non-negative integer. Now we ma...
分类:
其他好文 时间:
2014-08-05 00:51:18
阅读次数:
284
hdu4908 & BestCoder Round #3 BestCoder Sequence(组合数学)...
分类:
其他好文 时间:
2014-08-04 21:44:38
阅读次数:
308
Wow! Such Sequence!
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2512 Accepted Submission(s): 751
Problem Description
Recently, ...
分类:
其他好文 时间:
2014-08-04 21:39:18
阅读次数:
289
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1711题目大意:在母链中找到子链的位置,输出开始的位置。 1 #include 2 #include 3 using namespace std; 4 int lens,lenc,next[10000.....
分类:
其他好文 时间:
2014-08-04 21:17:57
阅读次数:
174
Problem Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 +...
分类:
其他好文 时间:
2014-08-04 17:52:47
阅读次数:
187
BestCoder Sequence
Problem Description
Mr Potato is a coder.
Mr Potato is the BestCoder.
One night, an amazing sequence appeared in his dream. Length of this sequence is odd, the median...
分类:
其他好文 时间:
2014-08-04 17:42:57
阅读次数:
282
BestCoder SequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 573Accepted Submission(s): 201Pr...
分类:
其他好文 时间:
2014-08-04 17:24:17
阅读次数:
147
# include
# include
using namespace std;
int main()
{
int n,m,i,sum,cot,flag,j;
int map[80040];
int a[40010];
int ans1;
int ans2;
while(~scanf("%d%d",&n,&m))
{
ans1=ans2=40010;
memset(map...
分类:
其他好文 时间:
2014-08-04 14:33:47
阅读次数:
180