Skip to content

generating test case for programming judge in input/output style

Notifications You must be signed in to change notification settings

Mohammadreza-mz/test-case-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test-case-generator

generate input

use test-gen.cpp to create test-case inputs.

validator

a validator.cpp checks if the inputs of the problem are valid. you should write this file based on your problem. if inputs were valid you should print 0 to stdout, otherwise print 1.

generate output

write your solution in solution.cpp. you may assume that input to your code is given via stdin. also, print the desired output to stdout.

how to use

compile and run test-gen.cpp to create test-case inputs. then use the output-gen.sh to run the validator and generate output for test-case.

g++ -std=c++11 test-gen.cpp -o test-gen.exe
./test-gen.exe
bash output-gen.sh

About

generating test case for programming judge in input/output style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published