-
THIS TOOL IS MADE FOR C++ USERS
-
YOU MUST COPY THE CODE IN YOUR IDE AND THEN PRESS PASTE TO SAVE THE CODE
- Dark, split layout (problem ↔ editor)
- In-browser code editor
- Run sample tests directly in the page
- Submit without leaving the editor
- Simple local file manager (save / load / delete code)
- Dark UI
- Faster loading with caching
- Search, filter, and sort problems
- Manual tags & ratings
- Classification tools
- Install Tampermonkey (Chrome / Edge / Firefox)
- Press this and follow the instructions
- Go to
https://train.nzoi.org.nz/to see the effect!
The IDE embeds external tools (editor / diagnostics) that require COOP + COEP headers. Browsers do not allow setting these headers directly from userscripts, so ModHeader is required.
- Chrome Web Store: ModHeader
- Enable it for
train.nzoi.org.nz
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: credentialless
Make sure ModHeader is enabled before loading the NZOI site.
Without this, the embedded IDE / diagnostics will not work correctly.
- Open any problem
- Editor appears automatically
- Code is saved per problem
- Run → executes sample tests
- Submit → submits to NZOI judge
- Codes → manage saved code
- Search by name or tag
- Sort by difficulty, progress, group
- Edit tags / ratings directly
- Everything is contained in one userscript
- No external setup besides ModHeader
- Works entirely in the browser