feat: Aufgaben a-01 bis a-03 und b-04 bis b-06
Aufgaben unter tasks/ mit prompt.md, task.toml, start/ und check.sh. Musterlösungen bestehen die Checks, eine leere Lösung scheitert. b-06 erkennt fünf Mutationen; behoben: veralteter Bytecode in Mutantenkopien. Echter Lauf mit qwen3:0.6b auf srv04: 0 von 6 bestanden. Ein Repo-Test prüft die Gültigkeit der Aufgaben. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
4
tasks/A/a-02/check.sh
Executable file
4
tasks/A/a-02/check.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Erwartet: neu.txt = 1,2,30,4,30 und anzahl.txt enthält 5.
|
||||
[ "$(tr -d ' \r' < /work/neu.txt | paste -sd, -)" = "1,2,30,4,30" ] || exit 1
|
||||
[ "$(tr -d ' \n' < /work/anzahl.txt)" = "5" ]
|
||||
6
tasks/A/a-02/prompt.md
Normal file
6
tasks/A/a-02/prompt.md
Normal file
@ -0,0 +1,6 @@
|
||||
Im Ordner /work liegt die Datei zahlen.txt mit einer Zahl pro Zeile.
|
||||
1. Liste den Inhalt von /work auf.
|
||||
2. Lies zahlen.txt.
|
||||
3. Ersetze in jeder Zeile, die genau "3" lautet, durch "30". Schreibe das Ergebnis in neu.txt (eine Zahl pro Zeile).
|
||||
4. Zähle die Zeilen von neu.txt mit einem Shell-Befehl und schreibe die Zahl in anzahl.txt.
|
||||
Rufe danach done auf.
|
||||
5
tasks/A/a-02/start/zahlen.txt
Normal file
5
tasks/A/a-02/start/zahlen.txt
Normal file
@ -0,0 +1,5 @@
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
3
|
||||
6
tasks/A/a-02/task.toml
Normal file
6
tasks/A/a-02/task.toml
Normal file
@ -0,0 +1,6 @@
|
||||
id = "a-02"
|
||||
title = "Mehrere Werkzeuge nacheinander: auflisten, lesen, ändern, ausführen"
|
||||
group = "A"
|
||||
image = "cb-python:latest"
|
||||
max_steps = 15
|
||||
timeout_s = 420
|
||||
Reference in New Issue
Block a user