SPOJ

Pages: 12
ne555 wrote:
Nope.
So? and what does that Example mean?

Example

Input:
2
1 10
3 5

Output:
2
3
5
7

3
5
remember that stdin and stdout are different streams
Also, clarity
ok, the iput comes from one file and the output goes to another, fine. But that's rather marginal
There are no files involved, you read from one stream and output to the other, there is no need to hold output until the end.
also what does the number to the right of "running" mean when you have just submitted and its done compiling. It is always running(0). Does that mean something? Does it mean I haven't completed any of the inputs, if that is so something must really be wrong with the program, and probably not the optimization.
Still haven't got it working so are you saying the problem is just that it is not fast enough? Then I have no idea how to improve it without starting over, but the program I have made should be really fast. Also have anyone completed this challenge and knows how they want the output/input?
Registered users can post here. Sign in or register to post.
Pages: 12