結果

問題 No.820 Power of Two
ユーザー GrenacheGrenache
提出日時 2019-04-26 22:24:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 595 bytes
コンパイル時間 3,019 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 54,164 KB
最終ジャッジ日時 2024-05-03 23:29:35
合計ジャッジ時間 5,022 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
54,088 KB
testcase_01 AC 124 ms
54,132 KB
testcase_02 AC 119 ms
54,136 KB
testcase_03 AC 109 ms
53,092 KB
testcase_04 AC 121 ms
54,132 KB
testcase_05 AC 112 ms
53,668 KB
testcase_06 AC 110 ms
53,256 KB
testcase_07 AC 127 ms
54,008 KB
testcase_08 AC 125 ms
54,164 KB
testcase_09 AC 114 ms
53,980 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