I faced an issue for submission to CF Round 661 Problem D because the system test was showing some garbage value, but I tried the same code on my local IDE and ideone which shows the same as sample cases.Here is how it looks on my local IDE , and this is how it is on the system test case running. Obviously this might not be the correct code but I want to know why is this problem arising. My submission can be viewed here 89049494