Dock the code editor on the right, see exactly where your output differs from the expected, get your verdict without leaving the editor, and make the editor your own with themes and Vim or Emacs keys.
The code editor is where most of your time on Toph goes: on problem pages in the archive and in the contest arena. Today, we are releasing a round of improvements to it. You can place it where it suits you, see exactly what went wrong when an example fails, follow your submission without leaving the editor, and set it up the way you like to write code.
Click Open Editor on any problem to try it.
The editor can now sit on the right side of the page as well as at the bottom. Click the dock button in the editor’s corner to switch. With the editor on the right, the problem statement stays in full view next to your code.
Drag the editor’s edge to make it taller or wider. Toph remembers the size in your browser, so it opens the same way next time. Docking on the right needs a wide enough screen; on smaller screens, the editor stays at the bottom.
Click Test to run your code against the problem’s examples. Each example now gets its own row with its verdict, time and memory, and the first one that fails opens on its own.
For a wrong answer, the editor shows the input, the expected output and your output side by side, and highlights where they first differ. No more squinting at two long lines to find the one character that’s off.
Custom runs your code with your own input, using the code that’s in the editor at the moment you click Execute. The result shows the time and memory your code used, and says so if it ran out of time or memory, or crashed.
When you click Submit, the editor now follows your submission right there. A progress bar shows the tests as they run, and the verdict, time and memory appear when judging is done. Click the submission number to see the full details.
Example results, custom runs and your latest submission stack below the editor, so you can compare them without switching back and forth. Dismiss any of them with the cross.
Click the gear icon to open the new Code Editor Settings:
Changes show in the editor as you make them. Click Save to keep them, or close the settings to put everything back the way it was. Reset to Defaults starts over.
The same settings are on the new Code Editor page in your account settings. They apply in the archive and in the arena, on every device you use.
solution.cpp or solution.py, and uploads that accept every file extension your language uses.If you have any questions or need assistance, please don’t hesitate to contact Toph support or join the conversation in our community forum.