Winning CB Scholarship wrong answer

3 out of 6 testcases failed.

Hi @vivek21,
https://ide.codingblocks.com/s/164425 … Just took long instead of int .

image
But contrains are well inside int range.

When you multiply n and m and then store that number then it is out of range.