summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/custom_rdate/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/custom_rdate/task.py')
-rw-r--r--kpov_judge/tasks/custom_rdate/task.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/kpov_judge/tasks/custom_rdate/task.py b/kpov_judge/tasks/custom_rdate/task.py
index c619122..1f73887 100644
--- a/kpov_judge/tasks/custom_rdate/task.py
+++ b/kpov_judge/tasks/custom_rdate/task.py
@@ -3,7 +3,6 @@
# kpov_random_helpers should be imported by add_assignment.py
# TODO: finish this!
-
instructions = {
'si':u"""
Postavite dva navidezna racunalnika:
@@ -13,7 +12,8 @@ Postavite dva navidezna racunalnika:
Na rdateClient ustvarite uporabnika test z geslom test. Nastavite cas na
rdateClient tako, da kot rdate strežnik uporabite SimpleArbiterDhcpRdate.
Nato v domacem imeniku uporabnika test ustvarite program z imenom
-PROGRAM_FILENAME. Vrednost PROGRAM_FILENAME preberete na SimpleArbiterDhcpRdate.Program naj prebere 4 byte podatkov s standardnega vhoda in jih pretvori v
+{PROGRAM_FILENAME}.
+Program naj prebere 4 byte podatkov s standardnega vhoda in jih pretvori v
predznaceno celo število, pri čemer naj uporablja zapis z debelim koncem
(big endian).
Število naj program izpiše na standardni izhod v obliki niza.
@@ -22,6 +22,14 @@ predznaceno celo število, pri čemer naj uporablja zapis z debelim koncem
Setup two virtual machines:
- SimpleArbiterDhcpRdate from disk image simpleArbiterRdate and
- rdateClient.
+
+On rdateClient, create a user with the username test and password test.
+Set the time on rdateClient using rdate with SimpleArbiterDhcpRdate as
+the server. Then, write a program called {PROGRAM_FILENAME} and put it in
+user test's home directory.
+The program should read 4 bytes of data from standard input, convert
+them into a signed integer using big endian byte ordering and output the
+resulting integer (as a string) to standard output.
"""
}