Skip to content

A script for simplifying the process of test-case generation for competitive programmers

Notifications You must be signed in to change notification settings

jineshparakh/outputFilesGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

outputFilesGenerator

Competitive Programmers often need to generate a lot of test cases for the problems they have curated. Generating input files is a task which is very difficult to automate, because of the fact that the constraints for all the input files are not the same. But the task of generating the output files based on the inputs from the input files can be simplified.

Let us consider that you have a directory containing the soln.cpp(the file from which the outputs need to be generated) file and the input.txt files, say of the form input0.txt, input1.txt and so on.

This Python script will allow you to generate all the output.txt files, say of the form output0.txt, output1.txt and so on and also move all the input files to a folder called input and the output files to a folder called output.

The screenshots folder contains the screenshots of the working of the code on my system.

Description for the images

  1. The inital view of the working directory containing the soln.cpp file, the main.py file and all the other input.txt files.
  2. Screenshot 2,3 and 4 showcase the running script
  3. Screenshot 5 is the final view of the working directory

About

A script for simplifying the process of test-case generation for competitive programmers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages