4

I'll participate in IOI 2011 this year, and in order to prepare myself properly, I'm solving past IOI tasks. This task is kind of easy but it needs "a key" I can't figure out. I thought of making a linear traversal on the graph, but I couldn't figure out how to update the current traffic congesti...