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 1028. Stars

BinarySearch and BinaryTree)
Posted by Tural Neymanov 14 May 2010 22:11
Hi!

I solved the problem with binary search and got TL. After the search for some test I have found that the actual solution includes use of binary tree. So, what the difference? I actually thought that search is better because it doesn't use any memory, isn't it?