Atcoder Beginner Contest 206 | All Tasks Solutions

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 36

  • @utkarshgupta9858
    @utkarshgupta9858  Před 3 lety +12

    Sprague Grundy Theorem (A concept required for last problem):
    cp-algorithms.com/game_theory/sprague-grundy-nim.html

    • @sanskarsharma9494
      @sanskarsharma9494 Před 3 lety

      Thanks :)

    • @akshatjai258
      @akshatjai258 Před 3 lety

      I got the idea of the theorem, but i just want to ask is the proof of theorem important to solve the problems or just the theorem statement is enough

    • @shubhamagarwal2998
      @shubhamagarwal2998 Před 3 lety

      video plz

  • @shubhamagarwal2998
    @shubhamagarwal2998 Před 3 lety +3

    No we started atcoder plz keep uploading it

  • @devendrasingh4776
    @devendrasingh4776 Před 3 lety +13

    I used graph and saw all connected components. Because i dont know anything about dsu . I will laern it today hopefully

  • @rangeyraghav130
    @rangeyraghav130 Před 3 lety +7

    I solved D using a graph . I calculated the sum of depth of all connected components, it got accepted.

  • @madmax2442
    @madmax2442 Před 3 lety +2

    In Problem E, why did you do " if(l==1) l++; " in line 63 of your code? What is this corner case telling?

    • @astelthottankara4108
      @astelthottankara4108 Před 3 lety

      If l==1, then we are also considering pairs such as (1, 1), (1, 2)...(1, r). Gcd of these pairs is always 1 which we don't require, so we make l=2.

  • @louisfghbvc
    @louisfghbvc Před 3 lety +1

    Good Job!

  • @akashagrawal9374
    @akashagrawal9374 Před 3 lety +2

    No sir we participate in beginner contest, I personally found them very good

  • @bipulkumar6637
    @bipulkumar6637 Před 3 lety +1

    @utkarsh SIr can you give the resources for mobius function

  • @RohitKumar-eo7qn
    @RohitKumar-eo7qn Před 3 lety +3

    Any update regarding your course ? I've been waiting for so long

  • @AnuragSingh-ui2sb
    @AnuragSingh-ui2sb Před 3 lety +1

    💯💯

  • @nallasivakrishnasai1122
    @nallasivakrishnasai1122 Před 3 lety +3

    Is this contest similar to Div3 of CF ?
    Can anyone roughly provide the ratings According to codeforces for the problems after C ??
    Thanks a lot 😊

    • @utkarshgupta9858
      @utkarshgupta9858  Před 3 lety +1

      D 1600 maybe, E like 2000, F 2300

    • @nallasivakrishnasai1122
      @nallasivakrishnasai1122 Před 3 lety

      @@utkarshgupta9858 thanks a lot dude will try to give these contests from next time.
      Please try to upload solutions of these contests whenever you have time 😉

  • @learnbliss2046
    @learnbliss2046 Před 3 lety +2

    I had the same approach for C but didn't think of DSU for problem D.

  • @kamleshjoshi2949
    @kamleshjoshi2949 Před 3 lety +1

    Yhi toh chahiye tha 🙏

  • @xXmayank.kumarXx
    @xXmayank.kumarXx Před 3 lety +1

    yesterday's div2 where

  • @jannatunnaim2757
    @jannatunnaim2757 Před 2 lety

    Please,upload the solution of atcoder beginning contest 221

  • @pawanagrawal7653
    @pawanagrawal7653 Před 3 lety

    bhaiya I don't know dsu and graphs , is it mandatory to know graphs for learning dsu.

  • @NNELATURIASHOKKUMAR
    @NNELATURIASHOKKUMAR Před 3 lety +1

    Can i use binary search for the second problem?

    • @rangeyraghav130
      @rangeyraghav130 Před 3 lety

      Yes sum of n terms is a monotonic series .
      So you can use binary search

    • @NNELATURIASHOKKUMAR
      @NNELATURIASHOKKUMAR Před 3 lety

      @@rangeyraghav130 Thanks

    • @saurabhnikam
      @saurabhnikam Před 3 lety +3

      left = 1;
      right 1e5;
      while(left = n)
      {
      }
      else
      {
      }
      I
      ans = mid;
      right= mid-1;
      left = mid+1;
      }
      cout

  • @master_coder8628
    @master_coder8628 Před 3 lety +1

    Please also upload codeforces round. I always look upto ur videos for learning

  • @abhishek04204
    @abhishek04204 Před 3 lety

    Make video on dsu
    I think u spent more time on yesterdays e2.

  • @udayverma6120
    @udayverma6120 Před 3 lety

    Hello bhaiya, I wanna know if CP is required for fracking interviews of companies like Uber, Google or leetcode is enough? Please reply

    • @spyboy0076
      @spyboy0076 Před 3 lety +1

      Cp is a process to sharpen your problem solving skills to crack intervies. If u can do the same by leetcode then do anyone of them