Блог пользователя Subatom

Автор Subatom, история, 3 года назад, По-английски

One guy a days ago wrote a post about problem. He wrote wrong statement so I was interested in real problem.

I can't do it by myself can someone help?

problem link-- https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/Z

There is no editorial :d so that is why I am asking.

  • Проголосовать: нравится
  • -9
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

This blog was literally written 2 days ago about the same problem -_-

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится +1 Проголосовать: не нравится

    If AB > CD print "YES" otherwise, print "NO" yeas and it had WRONG statement

    • »
      »
      »
      3 года назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Most probably he was unable to use the '^' sign (idk why), but he linked the same problem. And this comment was the intended solution for the problem you linked to. So, I don't understand the point of writing this blog

      • »
        »
        »
        »
        3 года назад, # ^ |
        Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

        It is the solution of the wrong problem -_("-")_- (by the way, is it wrong to ask twice?)

        • »
          »
          »
          »
          »
          3 года назад, # ^ |
            Проголосовать: нравится +1 Проголосовать: не нравится

          Bruh, are you kidding me. It is the solution to the right problem lmao dude. A^B > C^D. Take log both sides, since logarithm is an increasing function (base > 1), inequality remains the same and hence B * log(A) > D * log(C). That's what this comment was all about. It seems like you misunderstood my comments and hence the rebel inside you started to ask about your "asking rights". Chill dude, you can ask as many times as you want and someone will definitely help you out :)

          • »
            »
            »
            »
            »
            »
            3 года назад, # ^ |
              Проголосовать: нравится 0 Проголосовать: не нравится

            you are probably right but I don't understand why it's equal :d that was the point of this blog :D

            • »
              »
              »
              »
              »
              »
              »
              3 года назад, # ^ |
                Проголосовать: нравится +1 Проголосовать: не нравится

              Because its basic prop of logarithm: $$$log(a^b) = b * log(a)$$$

              So $$$a^b > c^d \Leftrightarrow log(a^b) > log(c^d) \Leftrightarrow b * log(a) > d * log(d)$$$