--- /dev/null
+# Per-task config
+# All variables can be overriden in test-specific <test>.config
+
+# A list of all tests
+TESTS=1
+TESTS+=2 3
+
+# Test with example input
+SAMPLE_TESTS=1
+
+# Number of points per test
+POINTS_PER_TEST=1
+
+# List of extra files needed for compilation
+EXTRAS="extras.h"
+
+# Time limit in seconds
+TIME_LIMIT=10
+
+# Memory limit in kilobytes
+MEM_LIMIT=16384
+
+# Command used to check output syntax (optional)
+SYNTAX_CHECK=grep -v -- - $TDIR/$TEST.out >/dev/null
+
+# Command used to check output correctness
+OUTPUT_CHECK=diff -bBu $TDIR/$TEST.ok $TDIR/$TEST.out && echo >$TDIR/$TEST.pts 22
+
+OUTPUT_FILTER=tr -d '\r' <$TDIR/$TEST.raw >$TDIR/$TEST.out
+
+TEST_1_EXT_c_TIME_LIMIT=9.9
+
+IO_TYPE=file
--- /dev/null
+#include <stdio.h>
+
+int main(void)
+{
+ int x;
+ int sum = 0;
+ FILE *fi = fopen("sum.in", "r");
+ FILE *fo = fopen("sum.out", "w");
+
+ while (fscanf(fi, "%d", &x) == 1)
+ sum += x;
+ fprintf(fo, "%d\n", sum);
+ return 0;
+}