1 # HOME set automatically
2 # CONTESTANT set automatically
3 # TASK set automatically
5 PDIR="${HOME}/problems/${TASK}"
6 SDIR="${HOME}/solutions/${CONTESTANT}/${TASK}"
7 TDIR="${HOME}/testing/${CONTESTANT}/${TASK}"
10 TESTCASE_OUT=${TEST}.out
11 TESTCASE_OK=${TEST}.ok
12 TESTCASE_STATUS=${TEST}.stat
17 ### Programming language settings
19 # Known source file extensions
20 EXTENSIONS="c cc C cpp p pas"
22 # Some of the extensions can be aliases for other extensions
29 ## Variables which control compilation and execution
30 ## (see below for values for individual languages)
32 # Command used to run the compiler
35 # Sandbox options used when compiling
36 COMP_SANDBOX_OPTS="-m262144 -w60 -e -i/dev/null"
40 # Command used to execute the compiled program, may be ./$PROGRAM (default) or an
41 # interpreter with $PROGRAM as a parameter.
44 ## Settings for individual languages
47 EXT_c_COMP="/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC -lm"
51 EXT_cpp_COMP="/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CXXFLAGS $SRC -lm"
55 EXT_pas_COMP="/usr/bin/fpc -Ci -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC"
58 ### Per-task configuration variables (default values, override in per-task config)
60 # List of extra files needed for compilation. They are copied to the compiler
61 # sandbox from the problem's directory. XXX: or tdir
62 #COMP_EXTRAS="extras.h"
66 # interactive interactive task communicating via stdio with a testing program
67 # open-data open-data task (i.e., we don't submit program, but output files)
70 # I/O type (IO_TYPE sets defaults for IN_TYPE and OUT_TYPE)
71 # file input from $PROBLEM.in, output to $PROBLEM.out (possible even for interactive tasks)
72 # stdio input from stdin, output to stdout
73 # dir input from all files in the directory $TEST.in; these are copied to $BOXDIR
74 # and if they include .stdin, it will be available as program's std. input.
75 # none no input/output
84 TESTS="1 2 3 4 5 6 7 8 9 10"
86 # A list of public tests (executed by submit and check scripts)
89 # Number of points per test
92 # Time limit in seconds (can be fractional, but beware of noise)
95 # Memory limit in kilobytes
98 # Stack size limit in kilobytes (0=limited only by MEM_LIMIT)
101 # Command used for filtering of program output (optional)
102 # If turned on, program output (*.raw) is ran through this filter and the
103 # checkers are applied to the output of the filter (*.out).
104 # Can exit with code 1 if there is a syntax error in the output.
105 #OUTPUT_FILTER=tr -d '\r' <$TDIR/$TEST.raw >$TDIR/$TEST.out
107 # Command used to check output syntax (optional)
108 # Returns exit code 1 if syntax is wrong, 0 if correct
109 # fd1 is connect to evaluator log, feel free to log anything
110 # fd2 is an optional one-line verdict
111 #SYNTAX_CHECK=grep -v -- - $TDIR/$TEST.out
113 # Command used to check output correctness
114 # Returns exit code 1 if output is incorrect, 0 if correct
115 # fd1 is connect to evaluator log, feel free to log anything
116 # fd2 is an optional one-line verdict
117 # The checker can generate $TDIR/$TEST.pts to assign points irregularly
118 OUTPUT_CHECK=diff -bBu $TDIR/$TEST.ok $TDIR/$TEST.out
120 # Checker for interactive tasks
121 # Returns exit code 1 if test failed, 0 if passed
122 # fd0 and fd1 are connected to fd1 and fd0 of the program tested
123 # fd2 is an optional one-line verdict
124 # The checker can generate $TDIR/$TEST.pts to assign points irregularly
125 #IC_CHECK=$PDIR/checker $PDIR/$TEST.in $PDIR/$TEST.chk
127 # Sandbox options used when testing
128 TEST_SANDBOX_OPTS=-a2 -f -m$MEM_LIMIT -k$STACK_LIMIT -t$TIME_LIMIT $BOX_EXTRAS $BOX_IO_OPTS
130 # Extra options to be overridden in task configuration