結果

問題 No.820 Power of Two
ユーザー GrenacheGrenache
提出日時 2019-04-26 22:24:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 595 bytes
コンパイル時間 5,493 ms
コンパイル使用メモリ 71,932 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-08-16 15:12:16
合計ジャッジ時間 7,594 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,724 KB
testcase_01 AC 125 ms
55,600 KB
testcase_02 AC 125 ms
56,164 KB
testcase_03 AC 126 ms
55,688 KB
testcase_04 AC 126 ms
54,032 KB
testcase_05 AC 126 ms
55,840 KB
testcase_06 AC 126 ms
55,848 KB
testcase_07 AC 126 ms
55,456 KB
testcase_08 AC 126 ms
53,904 KB
testcase_09 AC 125 ms
56,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
		}
	}
}
0