【CODEFORCES】 C. George and Job

The new ITone 6 has been released recently and George got really keen to buy it. Unfortunately, he didn’t have enough money, so George was going to work as a programmer. Now he faced the following problem at the work.

Given a sequence ofnintegersp1,p2,…,pn. You are to choosekpairs of integers:

[l1,r1],[l2,r2],…,[lk,rk](1≤l1≤r1<l2≤r2<…<lk≤rk≤n;ri-li+1=m),

in such a way that the value of sumis maximal possible. Help George to cope with the task.

,自己打败自己的远远多于比别人打败的。

【CODEFORCES】 C. George and Job

相关文章:

你感兴趣的文章:

标签云: