recently....i came across a problem on spoj...NGM2.. http://www.spoj.com/problems/NGM2/
i think many dont concentrate on this topic.....i am one.....i know how to solve this problem....but couldnt write code.....could any one post code for this problem in c.