Hello Codeforces!
Preparing contests and teaching competitive programming usually means spending hours wrestling with Codeforces Polygon-translating problem statements into LaTeX, uploading test generators, configuring checkers, and setting memory/time limits.
To automate this tedious process, I built Polygon Pro: an AI-integrated pipeline that handles the heavy lifting of problem uploading so you can focus on the algorithms.
What does it do?
Polygon Pro takes a simple local folder structure and automates the entire Polygon problem creation workflow via the Polygon API.
Instead of clicking through the web interface, you just feed it your raw files. The integrated AI (you can use Antigravity or Code...) handles the rest:
Smart Statement Parsing: Reads your raw problem description (text or even an image) and automatically generates the perfectly formatted LaTeX legend, input, output, and notes.
Auto-Sample Extraction: Automatically detects example tests from the description and uploads them with useInStatements=true.
One-Command Upload: Uploads the main solution (MA tag), your custom checker (or defaults to std::lcmp), manual test inputs, and generator scripts (using testlib.h).
Auto-Configuration: Sets time limits, memory limits, and tags automatically.
How it works
You organize your problem locally like this:
MyProblem/
├── Problem/ problem.txt (or .png)
├── Solution/ solution.cpp
├── Test/ 1, 2, 3... (or gen.cpp)
└── Checker/ checker.cpp (optional)
Then, run the AI wrapper CLI with your Problem ID. The script translates everything, pushes it via the API, and all you have to do is hit Commit Changes on the Polygon web interface.
Jobless Final boss
I built this to speed up my own workflow for preparing Olympiad in Informatics materials, and I hope it helps other problem setters and CP teachers in the community save some valuable time.
Let me know what you think or if you have any feature requests in the comments!
Cheers.









Auto comment: topic has been updated by TunTunBeoPhi (previous revision, new revision, compare).
I feel like this is not safe somehow, you are literally taking my API key, plus you can access my entire account data, including problems, and you can leak it outside. But still, nice job!
Yeah, if you have a local AI, it will be safe.