HF RL Explorer

Prolog chickens & cows

Prolog chickens & cows: a task in rts-1k-rootless-apptainer: RTS-1K: offline rootless Apptainer release (Harbor dataset). Inside /app , use grep to inspect the two numbers in config.txt ( total animals and total legs ). Chickens have 2 legs, cows have 4 legs. Write a Prolog program at…

The task

Inside `/app`, use `grep` to inspect the two numbers in `config.txt` (`total_animals` and `total_legs`). Chickens have 2 legs, cows have 4 legs. Write a Prolog program at `/app/solve.pl` that reads `config.txt`, computes the number of chickens and cows, and writes the answer to `/app/result.txt`. The output file must…

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