Nearly ILLEGAL tips to improve your codeforces rating! | #1: Sample Cases

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 28

  • @rashidaziz2215
    @rashidaziz2215 ปีที่แล้ว +110

    Whenever I use guess these 50% of it comes WA on test case 2

  • @_aka5h
    @_aka5h ปีที่แล้ว +143

    And this is how I became Candidate Master
    from Master

  • @eliskam1150
    @eliskam1150 ปีที่แล้ว +13

    Nice video and amazing animation, keep up the work!
    I use this "trick" myself quite often.

  • @mistake10449
    @mistake10449 ปีที่แล้ว +1

    helped me in recent edu B problem 😁😁

  • @aldrinsaurovsarker5159
    @aldrinsaurovsarker5159 8 หลายเดือนก่อน +1

    In the second problem, if k is a prime number, then there is no solution. So, a one-liner doesn't always work.

    • @TeslasMoustache419
      @TeslasMoustache419 7 หลายเดือนก่อน +1

      I don't get it? Let's sub x = k -1. We get (k-1)! + (k-2)! which equals k*(k-2)!, i.e. it's a multiple of k.

    • @multi10801
      @multi10801 5 หลายเดือนก่อน

      it works, consider k = 2
      substitute x = k - 1 (i.e. x = 1)
      1! + (1 - 1)! = 1! + 0!
      1! = 1, 0! = 1
      1 + 1 = 2 -> divisible by k.
      and for other values of k, which are odd, if it is a prime number, x is always -1.

  • @vitaminprotein325
    @vitaminprotein325 ปีที่แล้ว +10

    I also solved both this questions seeing the test cases, without proving 😅

  • @ashersamuel958
    @ashersamuel958 8 หลายเดือนก่อน

    0:58 is literally me with every question

  • @rsKayiira
    @rsKayiira ปีที่แล้ว +1

    Great video, just started my CF journey and currently newbie. Whats your CF rating if you dont mind me asking

  • @fragadmsc
    @fragadmsc ปีที่แล้ว

    awesome video, thanks

  • @mohammedsamir5142
    @mohammedsamir5142 ปีที่แล้ว +19

    This may work only in problems of level < 1000... Both examples you provided were Codeforces Div2 A problems.
    Harder problems require more observations and thinking.

    • @beaconcodes
      @beaconcodes  ปีที่แล้ว +11

      Hi - yeah I realize this, I was trying to give tips for people struggling in the easier questions so that they can solve them easier. Thanks though!

    • @random_memes009
      @random_memes009 ปีที่แล้ว +2

      @@beaconcodes yes but try to tell that this trick work for A level ques or B level .
      BTW thanks for the video

    • @webblyy
      @webblyy ปีที่แล้ว

      pretty good tip for fast-solve, that provides you the opportunity to take a higher place in standings

    • @KelinZhu
      @KelinZhu ปีที่แล้ว +3

      Typedb round, problem E is a 2100 rated problem that can be guessed from samples

    • @mohammedsamir5142
      @mohammedsamir5142 ปีที่แล้ว

      @@KelinZhu 😦 I didn't participate in it, but this is weird that problem C was dp and hard for many intelligent people and E is that easy.

  • @Negijicoder
    @Negijicoder 7 หลายเดือนก่อน

    i didn't see the sol let's see if it's correct or not: my idea is: if n is odd then there is no answer: and if n is even then always ans should be: like (1,n/2) by solving equations..

  • @tarunteja5575
    @tarunteja5575 ปีที่แล้ว +4

    really found this helpful
    nice work man keep on going
    never comeback

  • @usay_5317
    @usay_5317 8 หลายเดือนก่อน

    You gave me the easiest ways to hack those who solved such problems.

  • @android5626
    @android5626 ปีที่แล้ว

    brilliant!

  • @shivamchauhan029nitjsr4
    @shivamchauhan029nitjsr4 9 หลายเดือนก่อน +1

    I know It works but There's no way someone can reach > 1200 using these 'tricks' though.
    Stop using thumbnail of this Rating Graph please. :(

  • @iDabbl
    @iDabbl ปีที่แล้ว

    beacon orz

  • @mannythebuilderrr
    @mannythebuilderrr ปีที่แล้ว

    south african?

  • @MrKB_SSJ2
    @MrKB_SSJ2 9 หลายเดือนก่อน

    WTH BRO :]