Logging solutions

Logging was solved using C++ by 1166 contestants. Solution sizes: average 2587 bytes (shortest: 406; longest: 34303).

The list below is sorted by solution size. You can also sort by ranking.