Constrained Competitive Programming Stress-Test Generator

Generate reproducible Codeforces, AtCoder, and ICPC edge-case inputs up to N = 200,000 directly in your browser without writing throwaway Python scripts: random trees, bamboo/star killers, connected simple graphs, DAGs, anti-hash arrays, permutations, and multi-testcase (T) batches.

GENERATED COMPETITIVE PROGRAMMING INPUT

Stop Hand-Coding Boilerplate Stress Generators During Contests

Getting Wrong Answer on test 2 or TLE on test 47 on Codeforces usually comes down to edge-case shapes that sample inputs never include: a 100,000-node bamboo line tree that blows recursion depth, a star graph that breaks quadratic child loops, or GCC std::unordered_map hash-collision buckets. This browser generator emits guaranteed-valid, seed-reproducible inputs up to N = 200,000 in milliseconds.

Browser Stress Generator vs. Custom Python/C++ Generators & CS Academy

CriteriaQuickCoderHub (In-Browser)CS Academy / Hand-Written Scripts
Scale (Up to N = 200,000)Generates max-constraint TLE tests in millisecondsVisual graph drawers stall above ~50 nodes
Built-In Killer PatternsAnti-hash (×107897), bamboo tree, star graph, DAG, connected simple graphMust code Prüfer/spanning-tree logic from scratch each contest
Reproducible SeedsDeterministic Mulberry32 PRNG seedOften unseeded `rand()`

Frequently Asked Questions

Does Connected Simple Graph guarantee zero self-loops and zero duplicate edges?

Yes. It builds a random spanning tree of `N-1` edges first to guarantee connectivity, then samples remaining edges into a hash set rejecting self-loops and parallel pairs.

Can I generate massive `N = 200,000` files without freezing the browser textarea?

Yes. The full test input is kept in memory for instant 1-click Copy or `.in` download while the preview box cleanly truncates display above 60,000 characters so rendering stays silky smooth.

How do I split judge sample inputs from Codeforces/AtCoder?

Use our companion Test Case Parser & Splitter to split raw contest statement samples into numbered input files.

Does anything get sent to a server?

Never. Generation runs 100% locally in your browser.

Related Competitive Programming Tools