Somebody help me in this problem. I am stuck at Convex hull trick. Here is my Convex Hull trick implementation for the problem. But every time I am getting overflow. How to overcome from this. Also you can provide me a good fft template. Submission :131502964 Problem link : 319C - Kalila and Dimna in the Logging Industry