Блог пользователя Sukeesh

Автор Sukeesh, история, 11 лет назад, По-английски

GoCF

Contest parser for codeforces (only C++)

Github link : https://github.com/sukeesh/GoCF

Requirements

Tested on Linux Ubuntu 14.04, Elementary OS Freya.

Installation

  • Run ./install.sh

Usage

  • After the contest begins, fire up your terminal and type incf
  • Now, enter the contest code
  • GoCF will now download the test cases for you!
  • Now, for example let us take contest code as 624, name your problems as 624_A.cpp, 624_B.cpp, . .(Case sensitive)
  • Code in your favourite editor.
  • now, for testing your solution just gocf 624_A.cpp.
  • If you want to add a custom test case, adcf and enter problem code.

Asciinema

asciicast

EDIT

Added 'add Custom test case' feature and install script.

© [ Sukeesh ]

  • Проголосовать: нравится
  • +70
  • Проголосовать: не нравится

»
11 лет назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

Thanks for your efforts!

Would be terrific to add support for Windows users as well ;)

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

/bin/gocf: line 15: GoCF/sukeesh.txt: No such file or directory this is an error coming when i am doing this gocf 625_A.cpp.

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I think the program is not parsing the complete set. It's parsing only first 5 problems (A — E). Example : http://codeforces.me/contest/626

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I got this error after run incf.

Traceback (most recent call last):
  File "/home/arpa/GoCF/Parse.py", line 8, in <module>
    from colorama import init
ImportError: No module named colorama
»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Sukeesh (previous revision, new revision, compare).

»
10 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Sukeesh (previous revision, new revision, compare).

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I improved the project (now supporting problems like A1, A2, ...) and also fixed conflicts with python3. Let's talk and update the project.