結果

問題 No.820 Power of Two
ユーザー planetWorldYplanetWorldY
提出日時 2020-03-01 18:07:41
言語 Java19
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 2,181 ms
コンパイル使用メモリ 71,104 KB
実行使用メモリ 56,168 KB
最終ジャッジ日時 2023-08-03 23:41:33
合計ジャッジ時間 4,357 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,744 KB
testcase_01 AC 122 ms
55,812 KB
testcase_02 AC 120 ms
55,676 KB
testcase_03 AC 119 ms
55,956 KB
testcase_04 AC 121 ms
55,840 KB
testcase_05 AC 120 ms
55,432 KB
testcase_06 AC 121 ms
56,112 KB
testcase_07 AC 121 ms
56,168 KB
testcase_08 AC 122 ms
55,796 KB
testcase_09 AC 122 ms
56,168 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