anonymous_777's blog

By anonymous_777, history, 2 years ago, In English

I need help in Problem I encountered today.

Input

You are given 4 numbers = A,B,C,D

1 <= A,C <= 10**7

1 <= B,D <= 10**12

Output

Output 'YES' if (A**B) > (C**D)

else

Output 'NO'

As I have very less experience in CP.

Please explain me this problem.

ThankYou

  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Use logarithm maybe. It can convert the power operation to multiplication.