Today's language of choice is Ada . The problem wasn't too hard (just use a set), and the language itself was pretty easy to work with. The thing that took the longest time was installing the formatting tool from AUR...
Install gcc-ada
, then run:
./run.sh example.txt
You can omit the file argument to default to input.txt
.