SOLUTION : CodeChef: Practical coding for everyone
Not too wrong. You just missed to see the input constraints. Ci<=1000000000 . So long long int is required to handle it.
1 Like
Not too wrong. You just missed to see the input constraints. Ci<=1000000000 . So long long int is required to handle it.