Home AtCoder. 020 Log Inequality(3)
Post
Cancel

AtCoder. 020 Log Inequality(3)

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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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); }
}
This post is licensed under CC BY 4.0 by the author.