I have a simple doubt in the problem description of Life , Universe and Everything. How long should i scan for input ?? Is there any restriction on input size. Do i have to display the sorted output until i read 42 from input ?? Pls provide your inputs on this !!!
You should read and print until you reach a 42. Note, you don't need to read all input and then output all, you can output as you go.
@leppyr64: thank you for the clarification . but in the example they have cited
Input12884299
Output1288
Input is read even beyond 42. Am I wrong with this inference ??
Input is given past the 42, but your program doesn't have to read it.
Input is provided as a "file", but it comes on the stdin stream.
@leppyr64 : thank you for the clarification .