#Codeforces

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 9

  • @sunnymaurya238
    @sunnymaurya238 5 місяців тому

    Nice editorial ,but i couldn't understand the NlogN method and it seems good.

    • @aryanc403
      @aryanc403  5 місяців тому

      Code for NlogN with comments codeforces.com/contest/1936/submission/270284485

  • @PranavKumar-os6xl
    @PranavKumar-os6xl 10 місяців тому

    Please make solution video for pinball question in cf round 930 div 1+2

  • @mradultiwari9864
    @mradultiwari9864 10 місяців тому

    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

    • @aryanc403
      @aryanc403  10 місяців тому

      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

    • @mradultiwari9864
      @mradultiwari9864 10 місяців тому

      @@aryanc403 i somewhere lagging the input taking part ....can u share a source for learning interactive problems from A-Z

    • @mradultiwari9864
      @mradultiwari9864 10 місяців тому

      @@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

    • @aryanc403
      @aryanc403  10 місяців тому

      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

    • @mradultiwari9864
      @mradultiwari9864 10 місяців тому

      @@aryanc403 tq sir ❤️