diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-08-06 15:27:18 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-08-06 15:27:18 +0000 |
| commit | d75956684f9599b8daf705b11d67c75186ea7e3f (patch) | |
| tree | b22f943e9ab3c6849898e3cf5e9659a7ed24b359 /boca-1.5.0/doc/problemexamples/formiga/limits/java | |
| parent | 2c2663e03f56149ad4c909858b93fb3c1ea9f271 (diff) | |
| download | boca-d75956684f9599b8daf705b11d67c75186ea7e3f.tar.gz boca-d75956684f9599b8daf705b11d67c75186ea7e3f.zip | |
moving problem examples to better places and fixing a couple of typos in the problem's interface
Diffstat (limited to 'boca-1.5.0/doc/problemexamples/formiga/limits/java')
| -rw-r--r-- | boca-1.5.0/doc/problemexamples/formiga/limits/java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/boca-1.5.0/doc/problemexamples/formiga/limits/java b/boca-1.5.0/doc/problemexamples/formiga/limits/java new file mode 100644 index 0000000..b48a3b7 --- /dev/null +++ b/boca-1.5.0/doc/problemexamples/formiga/limits/java @@ -0,0 +1,13 @@ +#!/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 4 +# and the number of repetitions to run within the given timelimit in the second line +echo 10 +# and the maximum amount of memory per repetition in the third line (in Mbytes) +echo 512 +# 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. |