ssavi's blog

By ssavi, history, 9 years ago, In English

HI Great Helpers of CF!!!

I am getting WA for Several Times to solve this problem . Please help me out.

Problem Link : http://www.spoj.com/problems/HAMSTER1/en/

This is Ternary Search Problem . I got the Sample Test Correct . But I am failed to find out the Error . May be It could be a Error of my TS process .

Here is My Code : http://pastebin.ubuntu.com/15525055/

I got my Ternary Search Idea from this Blog : http://codeforces.net/blog/entry/11497

And I modified a little to get the answers for Floating point Values . It would be a great Help if someone help me out .

Thanks in Advance .

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

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

This can be done in O(1).