結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-26 22:24:15 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 126 ms / 2,000 ms |
| コード長 | 595 bytes |
| コンパイル時間 | 3,025 ms |
| コンパイル使用メモリ | 74,560 KB |
| 実行使用メモリ | 54,216 KB |
| 最終ジャッジ日時 | 2024-11-25 05:00:53 |
| 合計ジャッジ時間 | 4,769 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
import java.io.*;
import java.util.Scanner;
public class Main_yukicoder820 {
private static Scanner sc;
private static Printer pr;
private static void solve() {
int n = sc.nextInt();
int k = sc.nextInt();
int nn = 0x1 << n;
int x = 0x1 << k;
pr.println(nn / x);
}
// ---------------------------------------------------
public static void main(String[] args) {
sc = new Scanner(System.in);
pr = new Printer(System.out);
solve();
pr.close();
sc.close();
}
static class Printer extends PrintWriter {
Printer(OutputStream out) {
super(out);
}
}
}