Convex hull problem(my first on convex hull)

Revision en1, by kazama460, 2018-05-08 00:30:22

I am trying to solve a problem on convex hull(my first problem on convex hull) , but don't know why getting WA. I am using Grahm's scan algo to generate all points of Hull , and then simply calculating the parameter of the hull. please can anyone tell me whats wrong with my code. thank you in advance.

Link to my code

Link to problem

Tags convex hull, #codechef, #geometry

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English kazama460 2018-05-08 23:17:05 14
en1 English kazama460 2018-05-08 00:30:22 482 Initial revision (published)