So you get to Problem View page, which consists of two important parts. The first is the problem statement and looks like following:
You see here the following parts:
Scroll down the page to see the form for entering your code and your answer:
So here is the textarea with your input data, which you need to process to get the answer.
You can do this either in "standalone" mode or directly in the page.
With "standalone" variant, you can copy input data to clipboard (clicking them with right mouse button and choosing "copy"), then pasting them into your console, your source file or separate file - after you process these data in some way and get the answer - just copy it too and paste into the "answer" box. Also do not forget to paste your code into dedicated area.
If you prefer "in-the-page" variant, then enter your source code in the "code area" (marked with 1
in the picture),
write it so that data are read from standard input (i.e. "console") and answer is written to standard output. Next
click the button to execute your favorite compiler or interpreter (marked with 2
). The result will appear in a few
seconds inside the "answer" box (marked with 3
). Then click the "submit" button (marked with 4
).
Read the dedicated article Running Your Code for more info on this stea and for samples of "A+B" problem solutions working with standard input and output.
In this example the user prefers JavaScript (which is amended by "input" and "output" functions) to write the code.
After submitting the answer you will get to the page with the judgement of your attempt.
Go to Step 3 to learn how the result of successful submission looks.