diff options
| author | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 17:13:59 +0000 |
|---|---|---|
| committer | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 17:13:59 +0000 |
| commit | da1ef60ac7e8ebe530b0502473c1d59c06970f15 (patch) | |
| tree | 4909994d211601e7f64b6f8990c60493cf9063b8 /doc/problemexamples/problemtemplate/limits/py3 | |
| parent | 48401f08bea422bdfbf273e904947d9abbfc4659 (diff) | |
| download | boca-da1ef60ac7e8ebe530b0502473c1d59c06970f15.tar.gz boca-da1ef60ac7e8ebe530b0502473c1d59c06970f15.zip | |
problemtemplate: Adding py2 and py3 support
Tests scripts for both py2 and py3 are working.
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'doc/problemexamples/problemtemplate/limits/py3')
| -rw-r--r-- | doc/problemexamples/problemtemplate/limits/py3 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/problemexamples/problemtemplate/limits/py3 b/doc/problemexamples/problemtemplate/limits/py3 new file mode 100644 index 0000000..5701ffc --- /dev/null +++ b/doc/problemexamples/problemtemplate/limits/py3 @@ -0,0 +1,15 @@ +#!/bin/bash +# this executable shall output the number of second of timelimit in the first line, for the given problem and with language according to this filename +echo 1 +# and the number of repetitions to run within the given timelimit in the second line +echo 1 +# and the maximum amount of memory per repetition in the third line (in Mbytes) +echo 1024 +# and the maximum file size in the fourth line (in kbytes) +echo 1024 +# and shall return zero to indicate no failure +exit 0 +# the idea is that this file will be executed by the autojudge in the first time the autojudge downloads a problem, so as it will be +# able to decide the proper time limit for the machine where it is running. If one wants to fix a predefined time limit, then it is +# enough to write a script like this one with the desired value. Otherwise, one can build any more sophisticated program that outputs +# the value. |