233 B
233 B
The main thing here was sorting the list. I used bubble sort, which is not the fastest algorithm but was pretty easy to implement in befunge. The rest is just calculating the single scores.