尺取法
尺取法
阿聊
愿我千帆过尽,归来仍是少年
展开
-
poj3061
#include #include using namespace std; #include const int Max=100010; int main() { int ans; int n,S,a[Max]; int T; scanf("%d",&T);//还有这句话我没有太明白其意思,The input will finish with原创 2017-07-18 11:27:39 · 212 阅读 · 0 评论 -
hdu5178 pairs
//打注释的是我的代码,一直超时,别人三行代码顶我一坨,同是尺取法,为什么 我的复杂度就这么高呢? #include #include #include #include using namespace std; const int MAX_N = 100010; int arr[MAX_N]; int main() { int n, s; lo原创 2017-07-18 15:50:14 · 292 阅读 · 0 评论 -
尺取法
http://blog.csdn.net/consciousman/article/details/52348439转载 2017-11-30 16:52:22 · 166 阅读 · 0 评论