Collatz Conjecture Codeforces Solution || Div2

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

Komentáře • 8

  • @subhashsuryawanshi8820

    Good explanation thank you, keep it up

  • @user-zf2or7jb7y
    @user-zf2or7jb7y Před 22 dny

    code share place in comment section !!!!

    • @dustin4047
      @dustin4047  Před 22 dny +1

      void solve() {
      ll x, y, z;
      cin >> x >> y >> z;

      x++;
      z--;
      while (x != y)
      {
      if (x % y == 0)
      {
      while (x % y == 0)
      x = x / y;
      }
      if (z == 0)
      {
      cout

    • @user-zf2or7jb7y
      @user-zf2or7jb7y Před 19 dny

      @@dustin4047 tnx...vai

  • @akhandawasthi5990
    @akhandawasthi5990 Před 26 dny

    bad explanation..

    • @dustin4047
      @dustin4047  Před 26 dny +2

      pls tell me where u faced the problem... I'll try to solve here

    • @toshiksharma
      @toshiksharma Před 22 dny +3

      @@dustin4047 buddy you did great , don't give too much attention to these haters!

    • @dustin4047
      @dustin4047  Před 22 dny +1

      @@toshiksharma appreciate that