This commit is contained in:
Filip Gralinski 2020-10-15 07:17:57 +02:00
parent e8b2ebcf7d
commit c6b7b2b06a
6 changed files with 6 additions and 16 deletions

View File

@ -1,10 +0,0 @@
- title: Hamlet
- description: >-
Write a program to find lines containing the word "Hamlet".
Do not use regular expressions, just the simplest capabilities
of a programming language.
- points: 2
- deadline: 2020-10-15 23:59:59
- files:
- url: https://www.gutenberg.org/files/100/100-0.txt
name: shakespeare.in

View File

@ -3,4 +3,4 @@ Note: this is just an example of a task (and a solution).
The task has a solution already, do not solve it!
POINTS: 1
DEADLINE: 2019-10-30 23:59
DEADLINE: 2020-10-15 17:05

View File

@ -5,4 +5,4 @@ This is an example of a solution in a compilable langauge
(Makefile is needed in which compilation process is described.)
POINTS: 0
DEADLINE: 2019-10-30 23:59
DEADLINE: 2020-10-15 18:45

View File

@ -2,4 +2,4 @@ For each line read from the standard input print the number of characters
(not counting the end-of-line character), a space and the line read.
POINTS: 1
DEADLINE: 2019-10-30 23:59
DEADLINE: 2020-10-15 23:59

View File

@ -1,6 +1,6 @@
#!/bin/bash -ex
PREFIX=djfz-2019
PREFIX=djfz-2020
cd ..
@ -19,7 +19,7 @@ cp "${PREFIX}/count-points.pl" arena/
cp "${PREFIX}/overrides.txt" arena/
cp "${PREFIX}/Makefile" arena/
for TX in X01 X02 X03 X04 X05 X06 X07 X08 B00 B01 B02 B03 B04 B05 B06 C00 C01 C02 C03 C04 C05 C06 E01 E02 E03 E04 E05 E06 E07 # X05 X06 X07 X08 X09 X10 B03 B04 X10
for TX in X01 X02 X03 A01 # X04 X05 X06 X07 X08 B00 B01 B02 B03 B04 B05 B06 C00 C01 C02 C03 C04 C05 C06 E01 E02 E03 E04 E05 E06 E07 # X05 X06 X07 X08 X09 X10 B03 B04 X10
do
mkdir -p arena/Task$TX
done

View File

@ -139,7 +139,7 @@ sub check_deadline {
for my $file (glob "$task_id/*") {
if ($file !~ m{\.(in|arg|out|exp|\~)$|/(description\.txt|run)$}) {
my $dir_to_check = "../djfz-2019-s$student_id";
my $dir_to_check = "../djfz-2020-s$student_id";
if (not defined($student_id)) {
$dir_to_check = '.';
}