Winning CB scholarship

Three test case are not running . Please help with he code.

hey @2018kucp1041 your logic is correct but the problem is that all the variables can take value upto 10^9, and since you are multiplying two of them, you need long long int instead of int, so please turn every variable into long long.

Problem solved . Thanks for helping .

if the doubt is clear, please mark it as resolved