4
An Error In CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)
source link: http://codeforces.com/blog/entry/114558
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Hello everyone,
Did anyone notice that in today's contest (CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)) problem C had something wrong? Because in the 3rd example test case
5 2 3 1 1 1 3 3
The output was 8, while I think it could be 7 (which is less cost)
You remove the first and last elements: cost = 2*2 = 4, array = {1, 1, 3}
You add 1 to the first element: cost = 4+3 = 7, array = {2, 1, 3}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK