Winning CB scholar problem

https://ide.geeksforgeeks.org/Eczpl0tzXb

first 3 testcase failing.

@RULEREMPIRES 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 instead of int, so please turn every variable into long

please mark your doubt as resolved if u are satisfied with the solution