Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Datagen: make testcase generating easier
Difference between en3 and en4, changed 49 character(s)
I wrote a tool 'Datagen' using C++. It's a command-line tool, targeted at CPers.↵
↵
Using a single-line command, you can generate testcase in batches.↵
↵
For example, if you want to generate #11-#20 testcases for your problem, with a time limit of 1.5s, and compare the running time with brute force solution as well:↵
↵
`datagen <yourproblem> 11..20 -h -t 1500`↵
↵
You only need to provide: (just use standard input/output. do not include 'freopen's)↵
↵
- `<yourproblem>_gen.exe` or `<yourproblem>_gen.cpp`↵
↵
- `<yourproblem>_sol.exe` or `<yourproblem>_sol.cpp`↵
↵
- (Optional) `<yourproblem>_hack.exe` or `<yourproblem>_hack.cpp`↵
↵
###
# Features↵
####- Compare with a Hack solution `-h`↵
####↵
-
 Set a Time Limit `-t xxxx`↵
####↵
-
 Generate Outputs Only `-n↵
####
`↵
↵
-
 Compile(C++) Before Running `-c`↵
####↵
-
 Show Result Using Colors↵
####↵
-
 Auto Wait Until 1s to Avoid `time(0)` issues↵
↵
You can find more [here](https://gitee.com/mikcf/datagen/tree/master/).

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English mikcf 2025-04-26 02:44:13 66
en4 English mikcf 2025-04-26 02:40:45 49
en3 English mikcf 2025-04-26 02:39:57 505
en2 English mikcf 2025-04-26 02:15:29 290
en1 English mikcf 2025-04-25 16:24:29 191 Initial revision (published)