Introducing Ineffable

Revision en1, by accidentallygivenfuck, 2015-07-05 14:56:57

What is ineffable?

Simple grader for local grading of solutions for problems of competitive programming contests. It is written in Python and it uses timeout Perl library to limit resources (time and memory limits) of program being tested.

See it at work (sample session)

Let's solve problem Cow Steeplechase of USACO 2011 November Contest.

$ # Create folder `steeple` in your desktop and another folder `steeple_tests` inside it.
$ mkdir Desktop/steeple
$ cd Desktop/steeple
$ mkdir steeple_tests
$ cd steeple_tests
$
$ # Download and extract test data into `steeple/steeple_tests/`.
$ wget -q http://usaco.org/current/data/steeple.zip
$ unzip -q steeple.zip
$ rm steeple.zip
$ cd ..
$
$ # Create file `ineff.json` and configure.
$ touch ineff.json
$ echo '{
  "pkdesc": "Cow Steeplechase (USACO Gold November 2011 Contest)",
  "pbcode": "steeple",
  "tl": 3000,
  "ml": 65536,
  "warmup": "g++ -std=c++11 -O2 -o {PROBLEM} {PROBLEM}.cpp",
  "execute": "./{PROBLEM}",
  "tstdir": "{PROBLEM}_tests/",
  "inp": "I.*",
  "out": "O.*"
}' >ineff.json
$
$ # Create `steeple.cpp` and open it with your favorite editor to code your solution.
$ touch steeple.cpp
$ vim steeple.cpp
$ # ...
$
$ # Test your solution
$ ineffable

Screenshots

Installation

$ mkdir ~/.ineffable $ cd ~/.ineffable $ wget https://bitbucket.org/silap/ineffable/get/89f43e61ffb8.zip $ unzip 89f43e61ffb8.zip $ rm 89f43e61ffb8.zip $ mv silap-ineffable-89f43e61ffb8/* . $ rm -r silap-ineffable-89f43e61ffb8/ $ ln -s ineffable /usr/local/bin/ineffable

Configuring ineffable

Tags ineffable, grader, simple, command-line

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en10 English accidentallygivenfuck 2015-07-30 22:24:43 224
en9 English accidentallygivenfuck 2015-07-14 12:56:20 119 Run "ln -s" (symbolic link creator) with root privilege
en8 English accidentallygivenfuck 2015-07-06 21:34:24 26 Tiny change: 'n\nSimple grader f' -> 'n\nSimple command-line grader f'
en7 English accidentallygivenfuck 2015-07-06 17:44:02 164
en6 English accidentallygivenfuck 2015-07-05 22:49:40 55
en5 English accidentallygivenfuck 2015-07-05 18:09:47 0 (published)
en4 English accidentallygivenfuck 2015-07-05 18:08:33 334 Tiny change: 'n~~~~~\n\n<hr>\n\nAs I h' -> 'n~~~~~\n\nAs I h'
en3 English accidentallygivenfuck 2015-07-05 17:58:46 7021
en2 English accidentallygivenfuck 2015-07-05 15:40:00 625
en1 English accidentallygivenfuck 2015-07-05 14:56:57 1809 Initial revision (saved to drafts)