From 8fa580d8a0ef5a9e2455c477a296cb0a537e0ba3 Mon Sep 17 00:00:00 2001 From: Bruno Cesar Ribas Date: Tue, 23 Oct 2018 08:56:39 -0300 Subject: Adding kotlin files with problemtemplate Signed-off-by: Bruno Cesar Ribas --- doc/problemexamples/problemtemplate/limits/kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/problemexamples/problemtemplate/limits/kt (limited to 'doc/problemexamples/problemtemplate/limits/kt') diff --git a/doc/problemexamples/problemtemplate/limits/kt b/doc/problemexamples/problemtemplate/limits/kt new file mode 100644 index 0000000..5701ffc --- /dev/null +++ b/doc/problemexamples/problemtemplate/limits/kt @@ -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. -- cgit v1.2.3