IBM “Ponder This” July challenge.

by IBM:

There are 80 students in a school. Each of them eats fruit for dessert every day, and the available fruits are apples, bananas, and cherries.

Find a possible setting of desserts for 14 days such that for every set of three students, there exists at least one day in which they all ate different desserts.

Please supply your solution as a list of lines, in which each line is 80 characters long and contains the letters ‘A’, ‘B’ and ‘C’.

We will post the names of those who submit a correct, original solution! If you don’t want your name posted then please include such a statement in your submission!

We invite visitors to our website to submit an elegant solution. Send your submission to the webmaster.



Can you solve it?