結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-26 22:24:15 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 88 ms / 2,000 ms |
| + 317µs | |
| コード長 | 595 bytes |
| 記録 | |
| コンパイル時間 | 2,750 ms |
| コンパイル使用メモリ | 85,452 KB |
| 実行使用メモリ | 46,692 KB |
| 最終ジャッジ日時 | 2026-10-13 03:56:04 |
| 合計ジャッジ時間 | 5,298 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
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);
}
}
}