Skip to content

Commit 1e3fffb

Browse files
committed
Update tasks for new environments versions
1 parent 92a687f commit 1e3fffb

File tree

10 files changed

+9
-12
lines changed

10 files changed

+9
-12
lines changed

tasks/hello-c/hello.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
int main(int argc, char *argv[])
44
{
5-
printf("Hello World!\n");
6-
return 0;
5+
printf("Hello World!\n");
6+
return 0;
77
}

tasks/hello-c/hello.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
mkdir /tmp/work
33
cp /task/hello.c /tmp/work/hello.c
44
cd /tmp/work
5-
make --silent hello
5+
gcc hello.c -o hello
66
./hello

tasks/hello-java.task

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"taskfs": "hello-java.sfs",
44
"limits": {
55
"time": 60,
6-
"memory": 32,
6+
"memory": 64,
77
"disk": 50,
88
"output": 1024
99
}

tasks/hello-java/hello.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
PATH=/usr/lib/jvm/java-7-openjdk-i386/bin:$PATH
2+
PATH=/usr/lib/jvm/java-8-openjdk-i386/bin:$PATH
33
mkdir /tmp/work
44
cp /task/Hello.java /tmp/work/Hello.java
55
cd /tmp/work

tasks/hello-mono.task

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"taskfs": "hello-mono.sfs",
44
"limits": {
55
"time": 60,
6-
"memory": 32,
6+
"memory": 64,
77
"disk": 50,
88
"output": 1024
99
}

tasks/hello-mono/Hello.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ public static void Main (string[] args)
99
Console.WriteLine ("Hello World!");
1010
}
1111
}
12-
}
12+
}

tasks/hello-mono/hello.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
#PATH=/usr/bin:$PATH
32
mkdir /tmp/work
43
cp /task/Hello.cs /tmp/work/Hello.cs
54
cd /tmp/work

tasks/hello-python/data.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tasks/hello-python/hello.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#!/usr/bin/python3
2-
with open('/task/data.txt', 'r') as file:
3-
print(file.read())
2+
print("Hello World!")

0 commit comments

Comments
 (0)