Comments

The only thing that can make you LGM in seconds is new year Magic which is just month away.

+24

With Ashishgup as problem setter, we may expect some problem on turn-by-turn game (Source: 5 out of 7 of his contest has such problem).

x=4,y=14. It will fail on lot of cases like this.

+1

Today I got the notification that my solution 128612189 for the problem 1566C significantly coincides with solutions yashmittal19/128612189, ooz/128628009.Since ooz submitted solution around 25 minutes after me, so accusation is basically of sharing my solution. But I have not shared any of my code nor did I use sites like ideone. And even I don't know him. I don't know how to proof this but I have been giving contest regularly since last year and have never indulged in such malpractice. So I request admin to accept my solution.

It seems really amazing and helpful.

This is because you are returning value in case n<=2 without taking up the complete input so that input is taken up in the next test case.

Handle n=1 case separately. For n=1,ans will be arr[0]

Can anyone help me by explaining why are we iterating 100 times rather than using normal binary search in problem 5 : Weakness and Poorness[problem:578C].Thanks!

On mercuristHelp me. I'm stuck., 5 years ago
+3
On rgrg4Let's spread some positivity, 6 years ago
+50

Once I got wrong answer on test case 149.I thought that I may be missing some edge case. But eventually it turned out that my whole logic was wrong but still it was able to pass 148 test cases.

Please predict my rating — yashmittal19

It is really good idea.It would definitely stop multiple accounts formation and also would be nice to boost up confidence of new participant