problem 178, got 'Accepted 	31 ms	831 kb'

 the complexity is log(n)