CP Tools
FeaturedRepovive Competitive Programming Extension
Import competitive programming problems to Repovive compiler Repovive Competitive Programming extension lets you seamlessly import problems from Codeforces directly into the Repovive compiler. Simply click the extension icon while viewing any Codeforces problem, and it will automatically extract: • Problem details and constraints • Sample test cases with inputs and outputs • Time and memory limits The extension then opens Repovive compiler with all test cases pre-loaded, allowing you to: ✓ Code in multiple languages (Python, C++, Java, JavaScript, C, Rust, Go) ✓ Run your solution against all sample test cases instantly ✓ See which test cases pass or fail ✓ Submit directly to Codeforces when ready

testlib.h
testlib.h is the industry-standard C++ library for competitive programming problem development, used by Codeforces, ICPC, IOI, and thousands of problemsetters worldwide. This single-header library provides a comprehensive toolkit for creating, validating, and evaluating competitive programming problems. Four Core Components: 1. GENERATORS - Create test cases programmatically • Cross-platform deterministic random: rnd.next() guarantees identical output across all compilers • Pattern-based generation: rnd.next("[a-z]{1,100}") for regex-like string generation • Weighted distributions: rnd.wnext() for non-uniform randomness (useful for trees/graphs) • Built-in permutation generation: rnd.perm(size, first) 2. VALIDATORS - Ensure test data quality • Strict input validation: readInt(), readEoln(), readEof() enforce precise formatting • Constraint checking with meaningful error messages • Mandatory for Codeforces problems 3. CHECKERS - Compare participant output against jury answers • Handle problems with multiple correct solutions • Standardized verdicts: _ok, _wa, _pe, _fail • Unified quitf() function abstracts system-dependent return codes 4. INTERACTORS - Enable interactive problems • Manage bidirectional communication between judge and solution • Control input/output streams during execution Key Features: • Single #include "testlib.h" integration • Predefined stream objects: inf (input), ouf (participant output), ans (jury answer) • Compatible with Polygon problem preparation system • Supports C++11 and higher with g++, clang++, and MSVC • Extensive documentation and Codeforces blog tutorials Used in ROI (Russian National Olympiad), ICPC regionals and world finals, IOI, and all Codeforces rounds. With 1,600+ GitHub stars, testlib.h represents decades of refinement in competitive programming infrastructure.

cf-tool
cf-tool is a powerful command-line interface for Codeforces that streamlines the entire competitive programming workflow from your terminal. Written in Go and weighing only ~7MB, this cross-platform tool eliminates constant browser switching by bringing contest participation directly to your command line. Key Features: • Race Mode - Run "cf race [contest-id]" for the ultimate contest experience with countdown timer, auto-opening problem pages, and automatic sample fetching when the contest starts • Direct Submission - Submit solutions and watch verdict status in real-time without leaving the terminal • Test Case Management - Parse sample test cases, add custom tests (inK.txt/ansK.txt), and test locally before submitting • Template System - Generate code from customizable templates with dynamic placeholders ($%U%$ for username, $%Y%$/$%M%$/$%D%$ for date, etc.) • Solution Cloning - Clone entire solution repositories from other users for learning and analysis • Pull Previous Submissions - Retrieve your own past solutions for reference • Contest Information - View problem statistics and standings from the terminal • Multi-Platform Support - Works with regular Contests, Gym, Groups, and acmsguru archive Typical Workflow: 1. "cf race 1234" - Start contest with countdown and auto-setup 2. "cf gen cpp" - Generate solution file from template 3. "cf test" - Compile and test against samples 4. "cf submit" - Submit when tests pass 5. "cf watch" - Monitor submission verdict Supports all programming languages available on Codeforces. Configure network proxies and mirror hosts for users with connectivity issues. Colorful CLI output makes information easy to distinguish at a glance. Note: Repository archived December 2024 due to Codeforces bot detection. Still functional for most operations.

Competitive Programming Helper (CPH)
CPH (Competitive Programming Helper) is a powerful Visual Studio Code extension that transforms your editor into a complete competitive programming environment. With over 565,000 installs and a 4.5-star rating, it has become an essential tool for competitive programmers who prefer VS Code. Key Features: • Automatic Test Case Download - Fetch problems from 116+ online judges with one click via Competitive Companion • Intelligent Compilation - Automatic compilation with detailed error messages • Advanced Judging System - Handles runtime signals (SIGSEGV, SIGABRT), timeouts, and runtime errors with color-coded pass/fail indicators • Multi-Language Support - Full support for C++, C, Python, Java, JavaScript, Rust, Go, Haskell, Ruby, and C# • Direct Submission - Submit to Codeforces and Kattis via cph-submit companion extension • Local Problem Support - Create and test custom problems offline • Quick Launch - Ctrl+Alt+B or "Run Testcases" button to execute all test cases instantly The workflow is remarkably simple: install CPH, add Competitive Companion to your browser, navigate to any problem page, and click the green plus icon. The problem instantly appears in VS Code with all sample test cases ready. Press Ctrl+Alt+B, and CPH compiles your code, runs all test cases, and displays results immediately. Highly customizable through VS Code settings - configure save locations, preferred languages, compilation flags, timeout values, and more. Works seamlessly on Windows, Mac, and Linux.

CP Editor
CP Editor is a Qt-based, lightweight, and cross-platform IDE specifically engineered for competitive programming. Built using native C++ with the Qt framework, it delivers exceptional performance while maintaining a simple yet powerful interface designed by competitive programmers for competitive programmers. Key Features: • One-Click Compilation & Execution - Compile and run code with a single keystroke against multiple test cases • Automatic Test Case Fetching - Parse problems from 100+ online judges via Competitive Companion integration • Intelligent Judging - Instant feedback with AC/WA/TLE/RE verdicts for each test case • Advanced Syntax Highlighting - Powered by KSyntaxHighlighting (same as Kate editor) with code folding • Unlimited Code Snippets - Create customizable snippets for C++, Java, and Python with quick Ctrl+T insertion • Real-time Linting - Error/warning squiggles via Language Server Protocol integration • Code Formatting - Clang Format for C++/Java, YAPF for Python • Codeforces Integration - Direct submission via CF Tool with instant verdict feedback • Five Color Themes - Light, Dracula, Monokai, Solarized Light, and Solarized Dark • Three View Modes - Editor Mode, IO Mode, and Split Mode for flexible workspace The IDE follows a streamlined "fetch, code, compile, run, check, submit" workflow. Hot exit enables running code without saving, while session restoration ensures your work is never lost. With support for C++, Java, and Python, customizable compilation commands, and extensive keyboard shortcuts, CP Editor has become a premier choice for competitive programmers. Available on Linux (AppImage, Snap, AUR), Windows (installer and portable), and macOS.

Competitive Companion
Competitive Companion is a powerful browser extension designed to streamline the competitive programming workflow by automatically parsing problem statements from online judges and seamlessly integrating with popular coding tools. Available for both Chrome and Firefox, this extension eliminates the tedious manual copying of test cases and problem constraints. Key Features: • One-Click Problem Parsing - Click the green plus icon or use Ctrl+Shift+U to instantly parse problems • Automatic Test Case Extraction - Extracts all sample inputs, expected outputs, time limits, and memory constraints • Contest Batch Parsing - Parse all problems from a contest page simultaneously with a single click • 170+ Online Judges Supported - Works with Codeforces, AtCoder, CodeChef, LeetCode, HackerRank, SPOJ, UVa, Kattis, Google/Meta competitions, ICPC DOMjudge, and many more • 20+ Tool Integrations - Seamlessly works with CP Editor, CPH, JHelper, CHelper, acmX, Hightail, and others • Custom Tool Support - Developers can build integrations via HTTP servers listening on designated ports The extension sends parsed problem data in a structured JSON format via HTTP POST requests, making it easy for any tool to consume. Whether you're practicing daily or competing in live contests, Competitive Companion saves valuable time by automating the setup process so you can focus on solving algorithms.