diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-10-27 09:07:28 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-10-27 09:07:28 +0000 |
commit | d2bff70db654fcacfb612b288dbf1f3718f7459e (patch) | |
tree | 075de35f9f72d32d326044a34bfd106827a8eebe /kpov_judge/tasks/mock_entrance_exam | |
parent | 173d160b19811eb77fdd36c9c0eacf90b65a83f3 (diff) |
Spet dodan tekst naloge.
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@343 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/mock_entrance_exam')
-rw-r--r-- | kpov_judge/tasks/mock_entrance_exam/task.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/kpov_judge/tasks/mock_entrance_exam/task.py b/kpov_judge/tasks/mock_entrance_exam/task.py index 1ee2d3f..1334187 100644 --- a/kpov_judge/tasks/mock_entrance_exam/task.py +++ b/kpov_judge/tasks/mock_entrance_exam/task.py @@ -5,7 +5,19 @@ # - switch to a real SSH/SFTP client to properly handle filenames instructions = { - 'si': u'Navodil ni.', + 'si': u'''simpleArbiter povezan na Internet. Računajte, da se na studentGUI ob zagonu zažene program {net_prog_name}, +ki vam spreminja nastavitve mrežne kartice. + +V domačem imeniku uporabnika student obstaja program {P_c} v programskem jeziku C. Prevedite ga v program z imenom {P_executable}. Izvorna koda je namenoma pokvarjena tako, da so vanjo vrinjeni nepotrebni znaki. Pred prevajanjem jo morate popraviti. + +Napišite skripto ali program {P_script} v domačem imeniku uporabnika student, ki: +- požene {P_executable} z argumentom {arg_c} in mu na standardni vhod pripelje vrednost spremenljivke {env_c} +- vse, kar {P_c} izpiše na stderr, spravi v datoteko {out_stderr_c}. +- vse vrstice, ki jih {P_c} izpiše na stdout in vsebujejo zaporedje znakov "ma", zapiše v {out_stdout_c}. + + +Lastnik vseh ustvarjenih datotek mora biti uporabnik test. Gesla uporabnika test +ne smete spreminjati.''', 'en': u''' ''', } @@ -229,7 +241,7 @@ int main(int argc, char **argv){ if (i % 31 == 0){ printf("ma"); } - fprintf(stderr, "%c", r % 32 + 'A'); + fprintf(stderr, "%c", (r % 32) + 'A'); if (i % 23 == 0){ fprintf(stderr, "PATACIS\\n"); } |