HAMSTER1 — [ Ternary Search. Getting WA. Help Please ]

Revision en2, by ssavi, 2016-03-27 21:19:29

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.com/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 .

Tags hamster1, spoj, ternary search

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ssavi 2016-03-27 21:19:29 8
en1 English ssavi 2016-03-27 21:17:20 672 Initial revision (published)