Archive

AtCoder. 020 Log Inequality(3)

Archived technical note: AtCoder. 020 Log Inequality(3).

[Link] https://AtCoder.jp/contests/typical90/tasks/typical90_t


import java.util.*;
import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    long a = atol(line[0]), b = atol(line[1]), c = atol(line[2]);
    System.out.println(a < pow(c, b) ? "Yes" : "No");
  }
  public static long pow(int base, int exp) {
    long l = 1;
    for(int i = 0; i < exp; i++) l *= base;
    return l;
  }
  public static long atol(String s) { return Long.parseLong(s); }
}