lazy_brain's blog

By lazy_brain, history, 7 years ago, In English

I'm new in trie. I have solved uvaoj problem no 11362 (phonebook) but it does not work properly. For the first test case it shows correct ans but for next 2nd test case compiler says "Has stopped working" problem link : https://uva.onlinejudge.org/external/113/p11362.pdf my code : http://pastebin.com/VMdzx7CB

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Hmm, strange..

I got AC with the same idea, check this out

AC Code

»
7 years ago, # |
  Vote: I like it +9 Vote: I do not like it

Atleast you Tried

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

On my machine it worked for both cases. Look this case, your code doesn't work: 1 2 91125426 911