I don't find any solution idea for this problem . I am totally stuck in this problem . If anyone solve the problem , please give me the idea for this problem . Thanks in advance !↵
↵
http://www.spoj.com/problems/HIGH/
↵
http://www.spoj.com/problems/HIGH/