vector96's blog

By vector96, 10 years ago, In English

Problem: http://mirror.codeforces.com/problemset/problem/483/B

I understood how to solve this problem in binary search but came across this O(1)solution but couldn't understand can someone explain.....

Solution: http://pastebin.com/tGmxbM6N

Full text and comments »

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