HF RL Explorer

Prolog chickens & cows

Prolog chickens & cows: a task in rts-1k-rootless-apptainer: RTS-1K: offline rootless Apptainer release (Harbor dataset). The workspace contains a Prolog program /app/solve.pl for a chickens and cows puzzle: there are 30 animals and 74 legs. The program is incorrect. Correct the program so it…

The task

The workspace contains a Prolog program `/app/solve.pl` for a chickens and cows puzzle: there are 30 animals and 74 legs. The program is incorrect. Correct the program so it produces the right answer. Run the solver and write its output to `/app/result.txt`. The file must contain exactly two lines: Chickens: <number>…

Part of laion/rts-1k-rootless-apptainer.