Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя rahulpadhy

Автор rahulpadhy, история, 7 лет назад, По-английски

Hey, can anyone please tell as to where I am going wrong ? Here's the problem link : http://www.spoj.com/problems/PHONELST/

I am getting Runtime Error.. Am I doing anything wrong in the deletion part, wherein I am trying to delete the entire trie ? I am even getting Runtime Error for the 2nd sample input..

My solution link : http://ideone.com/4hSjtb

EDIT : My code seems to work for only a single test case, not for multiple test cases..

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It can be done easily by hashing