結果

問題 No.820 Power of Two
ユーザー planetWorldYplanetWorldY
提出日時 2020-03-01 18:07:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 2,021 ms
コンパイル使用メモリ 83,132 KB
実行使用メモリ 41,188 KB
最終ジャッジ日時 2024-04-21 22:20:52
合計ジャッジ時間 4,014 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
39,432 KB
testcase_01 AC 106 ms
40,352 KB
testcase_02 AC 115 ms
40,832 KB
testcase_03 AC 112 ms
41,100 KB
testcase_04 AC 118 ms
40,304 KB
testcase_05 AC 114 ms
41,148 KB
testcase_06 AC 117 ms
41,188 KB
testcase_07 AC 114 ms
41,052 KB
testcase_08 AC 100 ms
39,984 KB
testcase_09 AC 112 ms
40,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int number1 = sc.nextInt();
        int number2 = sc.nextInt();
        
        int number3 =(int)Math.pow(2,number1);
        int number4 =(int)Math.pow(2,number2);
        
        
        System.out.println(number3 / number4);
    }
}
0