Competitive Programming Solutions

GitHub
back to dashboard

Z. Hard Compare

Codeforces - Sheet #1 (Data type - Conditions) · limit: 1s · memory: 256MB · view on codeforces

input

3 2 5 4

output

NO
Main.java
static void solve() {

        // Write your solution here
        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();
        long d = in.nextLong();
        if (b * Math.log(a) > d * Math.log(c))
            out.println("YES");
        else
            out.println("NO");
    }