aboutsummaryrefslogtreecommitdiff
path: root/doc/problemexamples/problemtemplate/limits
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2014-10-30 13:06:31 +0000
committercassiopc <cassiopc@gmail.com>2014-10-30 13:06:31 +0000
commit299167dab2835fd91ce67a84deb515fea76246a3 (patch)
treeae698bf68bdffedd735b443ac90fc13d2a6b7a3f /doc/problemexamples/problemtemplate/limits
parentc00c84f2b36aabc95370bca8004f170c2d28ce60 (diff)
parent6692c1b3d36449575ae669131c782d4a48aa8c8f (diff)
downloadboca-299167dab2835fd91ce67a84deb515fea76246a3.tar.gz
boca-299167dab2835fd91ce67a84deb515fea76246a3.zip
Merge branch 'master' of https://code.google.com/p/boca
Diffstat (limited to 'doc/problemexamples/problemtemplate/limits')
-rw-r--r--doc/problemexamples/problemtemplate/limits/cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/problemexamples/problemtemplate/limits/cc b/doc/problemexamples/problemtemplate/limits/cc
new file mode 100644
index 0000000..b5aec73
--- /dev/null
+++ b/doc/problemexamples/problemtemplate/limits/cc
@@ -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 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 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.