Shahwat is a very good problem solver. He is very famous in his city. In any problem, the mayor asks…
Click here to read the complete problem statement.
If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.
As far as I can understand, the last line will only help you decide the int variable type you should choose (whether it can be int N, or long int N or long long int N or whatever). It’s nothing more than that.