General info about input and output
The solution for the exercises can be programmed in C, C++, Python 2/3 or Java. Your program has to read input from the standard input (stdin) and has to print to standard output (stdout).
In Python you should do this as follows for every line of text:
# Read from stdin str = raw_input() # Print to stdout print str
If you want to test your program locally, you can redirect the content of a textfile with:
python yourprogram.py < input.txt
While reviewing the exercises your input is compared to the output of a correct program. You have to make shure your output format is the same as is specified in the exercise.
Furthermore your program can't run longer than the lime limit specified in the exercise.