
c++ 尺取法
碳酸钙的01妖精
这个作者很懒,什么都没留下…
展开
-
POJ-2100 Graveyard Design(尺取法)
POJ-2100 Graveyard Design(尺取法)King George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sections, each of which must be ...原创 2018-02-27 08:48:15 · 164 阅读 · 0 评论 -
POJ-2566 Bound Found Time(尺取法)
POJ-2566 Bound Found Time(尺取法) Signals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must be going through a...原创 2018-02-27 19:36:47 · 177 阅读 · 0 评论 -
尺取法模板
int chiqu(){ int l = 0,r = 0; int ans = 0,len = MAXN; while(true) { while(r <= n && ans < S) r ++,ans += num[r]; if(ans < S) break; ...原创 2018-08-22 11:30:13 · 282 阅读 · 0 评论