You may choose to write your code in a standard text editor or in the contest screen.
To write code, in the contest window, select your chosen language from the drop down menu at the top right side of the screen. Type your code into the box (ignore the Python 2 code it automatically provides).
Enter test input such as the provided sample input into the box on the mid right side of the screen. Click on the test button to compile and run your code using the test input. You will see results appear in the bottom right box.
To submit code for judging, click on the submit button. Feedback will appear in the bottom right box.
This is optional but can be done on the campus Linux system. Run your programs on the terminal command line as follows:
input is the name of a file containing your input. The < redirects the contents of the input file into your program as if you were typing them at the prompt. It is not doing file I/O.
# Read in an unknown amount of input and prints the input followed by the sum. sum = 0 while line = STDIN.gets do puts line sum += line.to_i end puts sum
# Read in input until you see a 0 and prints the input followed by the sum. # to_i converts to integer so line.to_i converts the input to an integer line = gets sum = 0 while line.to_i != 0 puts line sum += line.to_i line = gets end puts sum