阅读背景:

C. Vasya And The Mushrooms【codeforces】

来源:互联网 

Vasya’s house is situated in a forest, and there is a mushroom glade near it. The glade consists of two rows, each of which can be divided into n consecutive cells. For each cell Vasya knows how fast the mushrooms grow in this cell (more formally, how many grams of mushrooms grow in this cell each minute). Vasya spends exactly one minute to move to some adjacent cell. Vasya cannot leave the glade. Two cells are considered adjacent if they share a common side. When Vasya enters some cell, he instantly collects all the mushrooms growing there. Vasya’s house is situated in a forest, and t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: