Skip to content

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cf-parser

This is a simple tool for scraping contest data from codeforces.com.

Given a contest id, it will:

  • create a directory for each problem
  • write sample inputs/outputs to files
  • create a solution source files from the given template (optional)

Install

Recommended way to install is through OPAM:

$ opam pin add cfparser git@github.com:ikatanic/cfparser.git

Usage

$ cfparser -help
Codeforces contest parser

  cfparser CONTEST_ID

=== flags ===

  [-dir dir]        directory to store problems. ./contest_id by default.
  [-temp filename]  code template to copy for each problem.
  [-build-info]     print info about this build and exit
  [-version]        print the version of this build and exit
  [-help]           print this help text and exit
                    (alias: -?)

Example

$ cfparser 901 -temp template.cpp
Found 5 problems.
Problem B: written 2 samples.
Problem D: written 4 samples.
Problem C: written 2 samples.
Problem E: written 3 samples.
Problem A: written 2 samples.

$ tree 901
901
β”œβ”€β”€ A
β”‚Β Β  β”œβ”€β”€ A.cpp
β”‚Β Β  β”œβ”€β”€ in1
β”‚Β Β  β”œβ”€β”€ in2
β”‚Β Β  β”œβ”€β”€ out1
β”‚Β Β  └── out2
β”œβ”€β”€ B
β”‚Β Β  β”œβ”€β”€ B.cpp
β”‚Β Β  β”œβ”€β”€ in1
β”‚Β Β  β”œβ”€β”€ in2
β”‚Β Β  β”œβ”€β”€ out1
β”‚Β Β  └── out2
...

About

Yet another Codeforces contest parser

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages