What the person above said is correct, it is output by line. In fact, the input and output examples you see are redirected to file input and output, which is equivalent to storing all the output in the command line into a buffer and outputting it in one go. So what its example means is that the output you see in the command line situation is interactive output, and in the file it is all output. Most of the question examples in OJ are examples that use freopen("in.txt", "r", stdin) redirection
Which sentence says that all data should be output together?
What the person above said is correct, it is output by line.
In fact, the input and output examples you see are redirected to file input and output, which is equivalent to storing all the output in the command line into a buffer and outputting it in one go. So what its example means is that the output you see in the command line situation is interactive output, and in the file it is all output.
Most of the question examples in OJ are examples that use freopen("in.txt", "r", stdin) redirection