Codeforces Round 971 (Div 4) - Programming Contest Solution Discussion

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 18

  • @Cinema-fp9mh
    @Cinema-fp9mh 10 дней назад +1

    Every prpblem was beautifully explained Master, I was able to visualize everything that you said ,and was able to do the code by myself ,keep it up master

  • @samuelromanguerra2760
    @samuelromanguerra2760 8 дней назад

    Help! with problem C. why if x=8, y=0, k=2 there should be 7 steps and not 8 steps it would take to get from 0,0 to 8,0. please explain....

    • @neptunns8537
      @neptunns8537 7 дней назад +1

      because you can skip last step. (2,0) -> (2,0) -> (4,0) -> (4,0) -> (6,0) -> (6,0) -> (8,0) ; you dont need to take step to Y because you reached the point already

    • @samuelromanguerra2760
      @samuelromanguerra2760 7 дней назад

      @@neptunns8537 thank you so much 😁

  • @Ivan-gd3oo
    @Ivan-gd3oo 12 дней назад

    pls show solutions

  • @nahidhasan8080
    @nahidhasan8080 16 дней назад +1

    Problem C has the wrong answer on test 2.

  • @Maybemiles_C
    @Maybemiles_C 16 дней назад

    How (0,10) is possible if k

    • @allinoneshaala3283
      @allinoneshaala3283 16 дней назад

      He will cover small steps let's say if k is 5 then in X direction he will move 0 distance then in y 5 units then again in x 0 and again in y 5 units making a total of 4 steps. I hope it helps

    • @supriya_codes
      @supriya_codes 16 дней назад

      he will 0 in x-direction turns 0

    • @HelloWorld-yc7gj
      @HelloWorld-yc7gj 16 дней назад

      Jump 1(x) (0,0) ... Jump 2(y) (0,8) ... Jump 3(x) (0,8) ... Jump 4(y) (0,10)