Magnet Puzzle (A Question from Annual Berkeley Programming Contest) | Hacker News Reader