aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/problemexamples/problemtemplate/compile/java10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/problemexamples/problemtemplate/compile/java b/doc/problemexamples/problemtemplate/compile/java
index 3d3f88e..86db23c 100644
--- a/doc/problemexamples/problemtemplate/compile/java
+++ b/doc/problemexamples/problemtemplate/compile/java
@@ -87,13 +87,13 @@ if [ ! -x $sf ]; then
exit 46
fi
-time=$4
-if [ "$time" -gt "0" ]; then
- let "ttime = $time + 30"
+# setting up the timelimit according to the problem
+if [ "$3" == "" ]; then
+ time=5
else
- time=1
- ttime=30
+ time=$3
fi
+let "ttime = $time + 30"
maxm=512
if [ "$4" != "" -a "$4" -gt "0" ]; then