ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1890. Money out of Thin Air

WA #3
Posted by FreezingCool 1 Nov 2011 23:06
Could anyone help me with test number 3?
I am having WA for some time and can't figure out what seems to be the problem.
Re: WA #3
Posted by Radi Muhammad Reza 2 Nov 2011 22:21
I had WA #3 for silly mistake on 'lazy' calculation. remember, new lazy of a node is added to previous lazy, not replaces :) again, if u calculate sum immediately, then only new lazy adds to sum not new+prev. i do not know your method. but, these were my mistakes.