Some source code doing the acm homework