i do not know why one test case failed please guide me
here is my code…
thanks in advance
i do not know why one test case failed please guide me
here is my code…
thanks in advance
Hi @Diwyanshu
See when the input is 1 then output should be 1 but your code is printing
1
1 1
which is why getting wrong answer. To correct it just put a check like this :
if(n>1)
cout<<1<<1<<endl;