help for problem at spoj — SPEC_SET ...
Can somebdy pls help me thinking how to approach to this problem. http://www.spoj.com/problems/SPEC_SET/