http://www.spoj.pl/problems/OPTM/Ce se cere e
mark[x1] ^ mark[y1] + mark[x2] ^ mark[y2] + ... minima. Cum ^ se face la nivel de bit, rezolvand suma anterioara pentru fiecare bit obtin rezultatul optim. Ce nu stiu e cum sa rezolv
mark[x1'] ^ mark[y1'] + mark[x2'] ^ mark[y2'] + ... unde elementele pot lua valorile 0, 1, unele fiind fixate, si suma sa fie minima ?