Giter Club home page Giter Club logo

cpt's Introduction

Competitive Programming Tester

Tool for testing your algorithms

Alt Text

Getting Started

Now cpt is presented as a command-line tool as cptc, but the web-based version is also an option in the future.

Prerequisites

Project is built by make which uses gcc (or clang for Mac) for compiling. Currently Makefile uses POSIX-compliant commands, so it is not tested on Windows.

Installing

As it was mentioned cpt uses make as a build system. And the core libcpt library is used in a command-line tool or a web-based application.

To build the library simply run

make cpt

Or to build command-line tool

make cptc

All the binaries and object files are now in the build directory.

Command-line interface

Usage

cptc [OPTIONS] program

Options

Name Description
-h,--help Print this help message and exit
-i,--input Input file (i.txt by default)
-o,--output Output file (o.txt by default)
-d,--dir Directory with tests (current directory by default)
-n,--num Number of tests (i[1..n].txt and o[1..n].txt files will be used)
-s,--silent Do not print additional test info
-t,--tests Tests ranges divided by comma (a:b, n, ...)
-e,--time Elapse test's time execution
-m,--min-per-thread Minimum number of tests per thread (3 by default)
--single-thread All tests are executed on a single thread
-b, --bin-dir Directory with binaries

Language support

  • C++
    • /usr/bin/g++
  • Java
    • /usr/bin/java
  • Python
    • /usr/bin/python
  • Go
    • /usr/local/go/bin/go

Dependencies

  • Header-only CLI11 for arguments parsing

โ€‹

cpt's People

Contributors

kirill-korolev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.