Magic Trick solutions

Magic Trick was solved using C++ by 10847 contestants. Solution sizes: average 1352 bytes (shortest: 388; longest: 26849).

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