This is just a solution of http://codeforces.com/problemset/problem/982/E
i like problems, i saw this in a fb post, lots of people thinks it's really hard to solve then i tried to my luck. seems it works
- java 1.8
- maven,actullay its just a commandline applicaition but i add some maven dependencies for adding test cases.