結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー yuuki121yuuki121
提出日時 2021-01-04 23:35:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 418 bytes
コンパイル時間 2,192 ms
コンパイル使用メモリ 74,340 KB
実行使用メモリ 37,280 KB
最終ジャッジ日時 2024-04-23 08:24:47
合計ジャッジ時間 3,755 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
36,964 KB
testcase_01 AC 47 ms
36,540 KB
testcase_02 AC 45 ms
37,208 KB
testcase_03 AC 43 ms
37,080 KB
testcase_04 AC 44 ms
37,100 KB
testcase_05 AC 45 ms
37,224 KB
testcase_06 AC 45 ms
37,092 KB
testcase_07 AC 44 ms
37,068 KB
testcase_08 AC 45 ms
37,224 KB
testcase_09 AC 45 ms
37,048 KB
testcase_10 AC 47 ms
36,964 KB
testcase_11 AC 46 ms
37,004 KB
testcase_12 AC 46 ms
37,120 KB
testcase_13 AC 45 ms
37,280 KB
testcase_14 AC 47 ms
37,148 KB
testcase_15 AC 45 ms
36,708 KB
testcase_16 AC 45 ms
36,928 KB
testcase_17 AC 46 ms
36,872 KB
testcase_18 AC 45 ms
37,148 KB
testcase_19 AC 44 ms
37,136 KB
testcase_20 AC 44 ms
37,132 KB
testcase_21 AC 44 ms
37,056 KB
testcase_22 AC 45 ms
37,120 KB
testcase_23 AC 45 ms
37,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int num = Integer.parseInt(br.readLine());
		int count = 0;
		int base = 1;

		while (num > base) {
			base *= 2;
			count++;
		}
		System.out.println(count);

	}
}
0