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 1414. Astronomical Database

WA test 5
Posted by Chuyan Dmitry 21 Mar 2016 16:14
please give me some tests.All test that I found in other topic my programm pass.
Re: WA test 5
Posted by vanvector 20 Apr 2016 12:11
When the program is launched, the database contains a single word "sun".
Re: WA test 5
Posted by die_young 30 Jul 2018 21:39
>>If the length of the resulting list exceeds 20, then you should output the first 20 names only.


So, this was my mistake, I initially ignored this statement.
Trie with pointers, std::string and std::cin/std::cout gets AC in 0.31 with 10 372 KB used.