link to mysubmission https://www.codechef.com/viewsolution/17560349
link to the problem https://www.codechef.com/problems/UNIVMT/
why am i getting only 50% score......
Asked by: Abhishek_Chaudhary on April 7, 2019, 6:34 p.m. Last updated on April 7, 2019, 6:34 p.m.
Please, always analyse your code and match with the output format of the question. For the case where n is less than or equal to 3, you are printing 0. That fine but you are supposed to be printing the next output in a newline. While your code prints the output in the same line. For small codes, it is easy for us to debug where you are going wrong but had it been some code with 100s of lines, it would have been hectic for us to find those tiny errors.
Try this :
2
2
291