the link of my solution is
http://www.codechef.com/viewsolution/3430014
please tell me the test cases for which it did not work.
@ meintoo Hi! You forgot to keep endline character \n while printing output!
It should be
if(a>b) printf("%d %ld\n",a,c);
else printf("%d %ld\n",b,c);
@meintoo your solution is correct , but you didn’t print new line thats why you got WA.
e.g
if(a>b)
printf("%d %ld\n",a,c);
else
printf("%d %ld\n",b,c);
1 Like
but there was no case of a new line
but was dere any case of a new line ?