結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
htensai
|
| 提出日時 | 2019-11-11 17:45:31 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 1,621 ms |
| コンパイル使用メモリ | 81,944 KB |
| 実行使用メモリ | 41,344 KB |
| 最終ジャッジ日時 | 2026-04-04 17:29:37 |
| 合計ジャッジ時間 | 2,721 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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