What is wrong in this solution for CAMERAS?

SOLUTION : http://www.codechef.com/viewsolution/5108000

Not too wrong. You just missed to see the input constraints. Ci<=1000000000 . So long long int is required to handle it.

1 Like