Comments

I got TLE in problem D while submitting the code in java and it got accepted when I submitted the same solution in c++. Here are links to my codes. Java solution :- http://codeforces.me/contest/1114/submission/50130092 c++ solution :- http://codeforces.me/contest/1114/submission/50134737 Please help!