Skip to content

A simple parsing and checking tool for questions from codeforces using CLI

License

Notifications You must be signed in to change notification settings

siddharth17196/codeforces-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

codeforces-cli

License: WTFPL

A simple parsing and checking implementation in python and bash for contests in codeforces.\

Installation

git clone "https://github.com/siddharth17196/codeforces-cli.git"
cd codeforces-cli/scripts
bash install.sh

Add the following to your .bashrc (run.sh is inside the scripts folder) alias cf="bash (path to run.sh)"

Usage

  • use get command to get the questions and test cases
  • use check to check the output of the test cases
    • the file can be named as you wish
    • this command should be run where the file and the input and output test cases are present
cf get 1348   #get the questions for the contest 1348
cd 1348/a
cf check a.py

directories

Correct Solution Wrong Solution
Correct Solution Wrong Solution

Templates

Initialize each problem directory with a py/cpp/any file with a specific template
A sample template could be (for a python file):

# author : siddharth

t = int(input())
for _ in range(t):
    n = list(map(int, input().split()))

If you want to change the template file go here and change the template.py or template.cpp etc whichever language you want the template to be in.

Tasks

  • Parsing questions and making sub folders and with test cases
  • checking test cases and showing differenes if wrong
  • checking multiple test cases at once
  • include templates
  • improving the usage(directory management)
  • submit from command line

About

A simple parsing and checking tool for questions from codeforces using CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published