[HDU 5183][BestCoder #32]Negative and Positive (NP) (STL模板)
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=5183题目大意给定一个数组(a0,a1,a2,⋯an−1)(a_0,a_1,a_2,⋯a_n−1)和一个整数KK, 请来判断一下是否存在二元组(i,j)(0≤i≤j<n)(i,j)(0≤i≤j<n)使得 NP−sum(i,j)NP−sum(i,j) 刚好为KK。这里NP−sum(i,j)=ai−ai+1+a
原创
2015-03-09 15:34:23 ·
700 阅读 ·
0 评论