Iss problem mai permutation hidden hai, bas uski length N di hai. Interactive problems thode alag hai normal problem mai jisme sirf input/output diya hota hai. Koi bhi soln jal jayaga jab tak hum judge se
Judge will return -1, aur jab bhi -1 response mai aya exit(0) karna hai. You can look at my code (shared in description) to see how to code interactive problems. You can read these blogs too codeforces.com/blog/entry/45307 discuss.codechef.com/t/interactive-problems-and-the-way-to-deal-with-them/21185
Nice editorial ,but i couldn't understand the NlogN method and it seems good.
Code for NlogN with comments codeforces.com/contest/1936/submission/270284485
Please make solution video for pinball question in cf round 930 div 1+2
But queries to 3n se bahut km di hai? Then how we are taking queries as input.... I don't get it. Interactive problem is sucking
Iss problem mai permutation hidden hai, bas uski length N di hai.
Interactive problems thode alag hai normal problem mai jisme sirf input/output diya hota hai.
Koi bhi soln jal jayaga jab tak hum judge se
@@aryanc403 i somewhere lagging the input taking part ....can u share a source for learning interactive problems from A-Z
@@aryanc403 jese test case 1 me 3 queries ka ans diya judge ne...to 4 query krege to judge kya ans return krega? Ye doubt aa raha
Judge will return -1, aur jab bhi -1 response mai aya exit(0) karna hai.
You can look at my code (shared in description) to see how to code interactive problems.
You can read these blogs too codeforces.com/blog/entry/45307 discuss.codechef.com/t/interactive-problems-and-the-way-to-deal-with-them/21185
@@aryanc403 tq sir ❤️