結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-26 14:30:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 189 bytes
コンパイル時間 1,866 ms
コンパイル使用メモリ 70,976 KB
実行使用メモリ 56,656 KB
最終ジャッジ日時 2023-09-06 05:03:23
合計ジャッジ時間 6,171 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
56,524 KB
testcase_01 AC 131 ms
56,400 KB
testcase_02 AC 132 ms
56,344 KB
testcase_03 AC 131 ms
56,116 KB
testcase_04 AC 131 ms
55,896 KB
testcase_05 AC 130 ms
56,140 KB
testcase_06 AC 131 ms
56,168 KB
testcase_07 AC 131 ms
56,420 KB
testcase_08 AC 133 ms
56,576 KB
testcase_09 AC 128 ms
54,228 KB
testcase_10 AC 129 ms
56,656 KB
testcase_11 AC 131 ms
56,172 KB
testcase_12 AC 129 ms
56,592 KB
testcase_13 AC 133 ms
56,152 KB
testcase_14 AC 130 ms
55,760 KB
testcase_15 AC 128 ms
56,412 KB
testcase_16 AC 134 ms
56,324 KB
testcase_17 AC 127 ms
56,544 KB
testcase_18 AC 128 ms
56,288 KB
testcase_19 AC 127 ms
56,120 KB
testcase_20 AC 125 ms
56,404 KB
testcase_21 AC 130 ms
56,400 KB
testcase_22 AC 128 ms
56,240 KB
testcase_23 AC 125 ms
56,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main {
	public static void main(String[] a) {
		System.out.println((int)Math.ceil(Math.log(new Scanner(System.in).nextDouble())/Math.log(2)));

	}
}
0