Back
Close

"Read StdIn, Flush StdOut"

In computer programming, standard streams are preconnected input and output communication channels between a computer program and its environment when it begins execution. The three input/output (I/O) connections are called standard input (stdin), standard output (stdout) and standard error (stderr).

CodinGame's model is to communicate with text, via these streams: your program is given inputs (the data needed to solve the problem) in the stdin and you need to print out the requested answer in the stdout. Hence, one of our taglines being: "Read stdin, Flush stdout"

Protocol

The default code, given in all CodinGame puzzles, already parses the inputs in stdin, does nothing with them and prints a default output in the stdout.

You can find more details about this default code and what to expect from the inputs and how to format your answer at the bottom of any puzzle statement. More details about the statement

Debugging

You can use the stderr for debugging purposes. Debug messages will show in the console output (at the bottom left).

You can not use breakpoints.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants