Thanks, Sir @CarlavierVN, for helping as an unpaid QC and reporting issues.
- Compact tool helps you quickly create testcases for your competitive programming problems
- Generate testcase using your own custom input and output file
- Support multiple languages and systems
- Friendly user interface
Tesgetor will run your input generator file and output generator file multiple times to create testcases. We have two main purposes:
- Supports newbies in creating usable testcases without interacting with the console line
- Fast and compact tool for small and medium programming competitions
- Go to Java official website and download lastest Java edition.
- Setup Java by click to installer and spam "Yes" or "I agree"
- Add Java Runtime Environment Path. You can follow this tutorial video from 0:30
- Download MinGW (which supports C++ 11 or above). Skip this if you already have Codeblock or Dev-C.
- Add MinGW Enviroment Path. You can follow this tutorial video
- Restart your computer to make sure everything is setup perfectly
- Choose your input generator file, ex: this file
- Choose your output generator file ex: this file
- Choose your testcase output folder, this folder should be empty
- Add command line argument: Instead of int main(), we do
int main(int argc, char** argv) - Add freopen in input generator:
freopen(argv[1], "w", stdout); - Add freopen in output generator:
freopen(argv[1], "r", stdin); freopen(argv[2], "w", stdout); - Use random function in C++ 11: high_resolution_clock instead of srand
Take a look at our example files in step 3 for better understanding.
- If you want generate test from 1 -> 10
- If you fill [From = 1, To = 10], testcases will be: 1.INP, 1.OUT, 2.INP, 2.OUT, ..., 10.INP, 10.OUT
- If you fill [From = 01, To = 10], testcases will be: 01.INP, 01.OUT, 02.INP, 02.OUT, ..., 10.INP, 10.OUT
- If you fill [From = 001, To = 010], testcases will be: 001.INP, 001.OUT, 002.INP, 002.OUT, ..., 010.INP, 010.OUT
- Timeout value means maximum time your generator files can run
- If your input generator runs in 1s for 1 test, output generator runs in 1s for 1 test. Your timeout should be >= 1

