Convex hull problem(my first on convex hull)

Правка en1, от 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

Теги convex hull, #codechef, #geometry

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский kazama460 2018-05-08 23:17:05 14
en1 Английский kazama460 2018-05-08 00:30:22 482 Initial revision (published)