uva; solve "Bicoloring" from Volume 100