Tuesday, August 17, 2010

SUCCESS

This is a tutorial problem in spoj. Link to the problem SUCCESS
The best i could manage is 26 in C. It includes printing "Success" as a returned value from brb() function. If you want to print "Success" as such then my best was 31. Here's the source code:

main(){exit(!puts("Success"));}

If anyone has better solution please share :)

2 comments:

  1. hey ... i need some help on Bye Bye Cakes on SPOJ. I get the right results in the tests there but I get wrong answer with their judge :(

    i ca show you the code, i can explain what i did. please help me out a little :D thanks

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete