Fix 43 verifiers from March 27 eval runs (39/43 verified pass)
Pass (39): 1065/E, 1188/C, 1203/F2, 134/C, 1401/F, 1450/F, 1583/F, 160/C, 1606/D, 1637/F, 1702/C, 173/B, 1765/A, 1765/C, 1778/F, 1845/E, 1946/F, 2021/B, 2085/F1, 2155/B, 258/D, 303/D, 38/H, 48/H, 500/E, 533/A, 625/D, 822/F, 832/C, 93/D, 702/F, 68/E, 611/E, 1779/E, 1239/B, 754/C, 1717/F, 277/C, 1918/F Fail (4): 1535/F, 1578/L, 1580/C(TLE), 2092/F(TLE)
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Codeforces Solutions
This repository collects solutions for Codeforces problems. The directory tree mirrors the contest numbers (
0-999,1000-1999,2000-2999, …). Inside each contest folder you will typically find:problemX.txt– the problem statement or notes for problem X.1234A.go,solB.cpp, etc.).verifierA.gothat compile a submission and run it against sample tests.Utilities
Several helper tools live in the repository root:
create.go– scaffold a new contest/problem directory.auto.go– convert existing C++ solutions to Go using the Codex CLI.auto_so.go– generate Go solutions from problem statements with Codex.webserver.go– simple HTTP server for browsing problems and submitting solutions locally.eval.go– evaluate AI-generated solutions. Supports flags like-model,-provider,-dband-timeoutto control the HTTP request timeout.export_failed.go– export failed AI responses by model into per-model folders with filenames like1395D.goor1453A.rsbased on language.All Go utilities build with the standard tooling. Example:
This repository aims to provide a complete archive. Feel free to use the code or utilities as a reference for your own workflow.
Some contests include verifier programs with deterministic test cases. For example, contest 90 provides verifiers for problems A and B:
Contest 1989 includes verifiers for all six problems with at least 100 test cases each. Run them by passing the path to your executable. For example:
Running the local webserver
The
webserver.goprogram lets you browse contests and test solutions directly from your browser. Launch it from the repository root:If you set the
ADMIN_KEYenvironment variable, the “Add Problem” form requires the same key before a problem is created. This helps prevent unauthorized modifications when running a public server.Open http://localhost:8081 to see the list of contests. Each problem page allows you to paste code or upload a file in C, C++, Go, Rust, Java or Python. If a verifier is present in the contest directory it will run automatically after compilation.
Exporting failed AI responses
Use
export_failed.goto pull all failed evaluations for specific models (exact model names) and save their code into folders named after each model:This creates directories like
gpt-5,gemini-2.5-pro, etc., and files such as1395D.goor1453A.rsdepending on the stored language. Use-dry-runto preview without writing files.Required compilers
The web server relies on external compilers/interpreters. Install the following tools so every language option works:
gccandg++javac/javagorustcpython3Below are minimal installation commands for common platforms.
Linux (Debian/Ubuntu)
macOS (Homebrew)
Windows
Alternatively use the official installers for MinGW-w64, Adoptium JDK, Go, Rust and Python.