結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-26 22:24:15 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 595 bytes |
| 記録 | |
| コンパイル時間 | 2,701 ms |
| コンパイル使用メモリ | 82,052 KB |
| 実行使用メモリ | 41,420 KB |
| 最終ジャッジ日時 | 2026-05-19 13:56:03 |
| 合計ジャッジ時間 | 8,300 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}
}