結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-09-18 13:18:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 418 bytes
コンパイル時間 3,472 ms
コンパイル使用メモリ 75,220 KB
実行使用メモリ 50,364 KB
最終ジャッジ日時 2024-04-25 15:25:53
合計ジャッジ時間 4,983 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
50,172 KB
testcase_01 AC 51 ms
50,324 KB
testcase_02 AC 50 ms
50,252 KB
testcase_03 AC 50 ms
49,924 KB
testcase_04 AC 50 ms
50,364 KB
testcase_05 AC 50 ms
50,240 KB
testcase_06 AC 50 ms
50,344 KB
testcase_07 AC 51 ms
49,952 KB
testcase_08 AC 51 ms
50,280 KB
testcase_09 AC 52 ms
50,244 KB
testcase_10 AC 52 ms
50,268 KB
testcase_11 AC 50 ms
50,172 KB
testcase_12 AC 50 ms
50,300 KB
testcase_13 AC 49 ms
50,348 KB
testcase_14 AC 51 ms
50,320 KB
testcase_15 AC 51 ms
50,072 KB
testcase_16 AC 51 ms
50,256 KB
testcase_17 AC 50 ms
50,256 KB
testcase_18 AC 50 ms
50,340 KB
testcase_19 AC 51 ms
50,116 KB
testcase_20 AC 51 ms
50,160 KB
testcase_21 AC 50 ms
50,340 KB
testcase_22 AC 50 ms
50,328 KB
testcase_23 AC 49 ms
50,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No47 {

	public static void main(String[] args) throws IOException, NumberFormatException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int count = 0;
		for (int i = 0; Math.pow(2,i) < n; i++) count++;
		System.out.println(count);
	}
}
0