Codeforces Round 996 (Div 2) | Video Solutions - A to D | by Soumojit Chatterjee | TLE Eliminators

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

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

  • @venkatmalviya2421
    @venkatmalviya2421 14 дней назад +11

    1st: abs(a-b)%2==0: Yes else: no

  • @soumojitchatterjee6943
    @soumojitchatterjee6943 15 дней назад +34

    In the problem C (The Trail), I was asked why I kept the Target sum x value to 0. We saw that a non-zero value of x doesn't work for test cases where n != m.
    I apologise that I couldn't formally show a proof in the PCD as I incorrectly thought it would work for all values. (And luckily chose 0 which worked).
    Here is a formal proof why no value of x != 0 works when n != m.
    Suppose, all the row sums and column sums are x.
    So, Sum of all cells in the grid = x*n (No. of rows * Sum of each row)
    Also, Sum of all cells in the grid = x*m (No. of columns * Sum of each Column)
    That means, x*n = x*m.
    But since n != m, It's true only when x = 0.

    • @samarpitagarwal7555
      @samarpitagarwal7555 14 дней назад +2

      I was having the same doubt during contest I took 1e11 but it didn't work then i luckily took zero it worked,but did not understand the intuition behind taking zero but now it's clear.. THANK YOU

    • @PrimeeeeeTie
      @PrimeeeeeTie 14 дней назад +3

      this was the logic I was lacking

    • @shashwattripathi4518
      @shashwattripathi4518 14 дней назад

      can u explain last sample test case of scarecrow in detail

    • @jatinsoni1979
      @jatinsoni1979 14 дней назад

      ​@@BoredToDeath2357 see the question itself says that there can be multiple solutions (probably hinting towards the case of m=n) but we can say one thing for sure that x=0 would always work regardless becuase of the way the path moves, i.e downwards or rightwards. becuase the path movies only downwards or upwards it is always possible to make all row and coloumn's sum as zero, hence x=0 is always one of the answers for sure in any case.

    • @PrimeeeeeTie
      @PrimeeeeeTie 14 дней назад

      @ i think input arrays would be such only that they give solutions

  • @hi_guys_wassup
    @hi_guys_wassup 13 дней назад +2

    Bhalo explanation diyecho sob questions er 👍🏻

  • @notpersonal987
    @notpersonal987 15 дней назад +4

    very clear and nice explanation sir

  • @hhhlll-l4j
    @hhhlll-l4j 14 дней назад +1

    Great explanation for problem D.

  • @manoor0858
    @manoor0858 9 дней назад +1

    for first question i calculated difference in their position if its odd print no else yes

  • @dysfunctional_ape
    @dysfunctional_ape 13 дней назад +1

    thanks tle hit pupil in the contest

  • @Travel-s5e
    @Travel-s5e 14 дней назад +2

    worwst contets for me
    i wan only able to solve 1 question gneerally i had solved 2

  • @manoor0858
    @manoor0858 10 дней назад

    sir how can i access the zoom meeting??

  • @TLE_Eliminators
    @TLE_Eliminators  15 дней назад +1

    Please fill the Feedback form for PCD: forms.gle/8m1bVCzwLqvkDZ23A

  • @hemant_kumar_071
    @hemant_kumar_071 14 дней назад +1

    Guys can you tell me the name of website where we can see rating of the contest questions

  • @SatyamKumar-m4z4s
    @SatyamKumar-m4z4s 12 дней назад +1

    Please don't allow these disturbing elements to interrupt in between your explanation. He is just creating disturbance and noise for the others and nothing else.

  • @akshaybhasin5778
    @akshaybhasin5778 15 дней назад +15

    I solved A problem like this:
    int main()
    {
    int t;
    cin >> t;
    while (t--)
    {
    int n, a, b;
    cin >> n >> a >> b;
    if (abs(a - b) % 2 == 0)
    {
    cout

  • @AppMaruf
    @AppMaruf 14 дней назад

    Wonderful PCD Soumojit

  • @freebookstore3242
    @freebookstore3242 15 дней назад

    thx for the upload

  • @TanmayMankar-26
    @TanmayMankar-26 14 дней назад

    From c it was exponential

    • @ankitghanshala7382
      @ankitghanshala7382 14 дней назад +1

      bhai C kis rating ka tha meri 950 rating hai div2 c nahi hota 😢

    • @nishanttyagi3665
      @nishanttyagi3665 13 дней назад +2

      @@ankitghanshala7382 around 1400

  • @master_26_10
    @master_26_10 14 дней назад +4

    Worst contest for me in last 3 months. Dropped from pupil with -51

    • @umangkumar3459
      @umangkumar3459 14 дней назад

      You will improve just don't quit

    • @imPriyansh77
      @imPriyansh77 14 дней назад

      Yes!! Worst contest for me as well. Got -72

    • @ayaaniqbal3531
      @ayaaniqbal3531 14 дней назад +1

      If you are pupil then why are you giving Div 2 contest ?

    • @VarunKmr15
      @VarunKmr15 14 дней назад +7

      @@ayaaniqbal3531 brother ngl if you gonna think like this you'll hardly improve.

    • @ayaaniqbal3531
      @ayaaniqbal3531 14 дней назад +1

      means i should give all contest without regarding my rating ? by the way thanks i was not knowing that .