結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
htensai
|
| 提出日時 | 2019-11-11 17:45:31 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 129 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 2,121 ms |
| コンパイル使用メモリ | 74,484 KB |
| 実行使用メモリ | 41,252 KB |
| 最終ジャッジ日時 | 2024-09-15 05:17:47 |
| 合計ジャッジ時間 | 3,939 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
import java.util.*;
public class Main {
static TreeSet<Integer> primes;
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
double max = Math.pow(2, n);
double unit = Math.pow(2, k);
System.out.println((long)(max / unit));
}
}
htensai