Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official. ×

ToooRist's blog

By ToooRist, history, 14 months ago, In English,

I can't find my mistake on this solution for this problem. Problem: http://www.spoj.com/problems/ADATREE/ Solution: https://pastebin.com/QjFae67a

 
 
 
 

»
14 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Good day to you,

try following input


11 1 23 18 22 6 22 10 20 4 28 9 0 10 10 2

If I'm not mistken, the answer shall be "0", is that true?

Good Luck & Have Nice Day

  • »
    »
    14 months ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Thanks a lot. I solved WA error. Now it gets TLE.