Giter Site home page Giter Site logo

joel-ostos / cptool Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26 KB

This repository hosts the code for cptool, a tool to "automate" cpp tests for competitive programming

License: GNU General Public License v2.0

Python 71.83% C++ 20.95% Shell 7.23%

cptool's Introduction

Cptool image

cptool

This repository hosts the code for cptool, a tool to "automate" cpp tests for competitive programming

Mode of use:

Clone the repository to the path you want, then there are several ways to run it:

  1. Use python cptool <filename> without the .cpp file extension, cptool will take care of compiling and testing your code. Make sure you have the test.txt file with the answer to your program, you can use the codeforces examples.

  2. Use chmod +x to make the file executable, then just do cptool , remember that every time you do this if cptool is not in the same folder you want to use it in you have to provide the path where it is located.

  3. The last way is to do chmod +x but move the executable to the /usr/local/bin folder so you can run cptool from anywhere, if you want you can run the make.sh file (with sudo) to do this for you.

Then if you want to try the tool you can execute the tool in the example directory.

Don't forget to have the preprocessor directive to receive inputs and write the program output to a file:

#ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
#endif

cptool's People

Contributors

joel-ostos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.