以下引自原题:
After outputting each line, don't forget to flush the output. For example:
- fflush(stdout) in C/C++;
- System.out.flush() in Java;
- sys.stdout.flush() in Python;
- flush(output) in Pascal;
- See the documentation for other languages.
上面写了每一次输出后都要进行更新,但是为什么我没有写 fflush(stdout)
这一语句却过了呢?Link
关于交互的一些规则我似乎有些不明白qwq。