diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-04-04 14:49:30 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-04-04 14:49:30 +0000 |
| commit | 84d0b093ed18e9282a32edf0d4a5258279408fe5 (patch) | |
| tree | 610abe2911afde0d1e13a4335d64391fbc629018 /doc/problemexamples/problemtemplate/compile/java | |
| parent | b0a23f0190ce03f79ca1562742e3491312246143 (diff) | |
| download | boca-84d0b093ed18e9282a32edf0d4a5258279408fe5.tar.gz boca-84d0b093ed18e9282a32edf0d4a5258279408fe5.zip | |
bugfix for timelimit of java compilation
Diffstat (limited to 'doc/problemexamples/problemtemplate/compile/java')
| -rw-r--r-- | doc/problemexamples/problemtemplate/compile/java | 10 |
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 |