結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー taichi_hobbiestaichi_hobbies
提出日時 2019-06-01 18:19:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 4,905 ms
コンパイル使用メモリ 78,896 KB
実行使用メモリ 57,736 KB
最終ジャッジ日時 2023-10-17 22:48:58
合計ジャッジ時間 9,125 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,420 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 133 ms
57,176 KB
testcase_04 AC 130 ms
57,232 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 134 ms
57,440 KB
testcase_08 AC 131 ms
57,476 KB
testcase_09 AC 130 ms
57,564 KB
testcase_10 AC 129 ms
57,592 KB
testcase_11 AC 130 ms
57,668 KB
testcase_12 AC 133 ms
57,492 KB
testcase_13 AC 132 ms
57,672 KB
testcase_14 AC 132 ms
57,264 KB
testcase_15 AC 131 ms
57,440 KB
testcase_16 AC 132 ms
57,416 KB
testcase_17 AC 132 ms
57,396 KB
testcase_18 AC 131 ms
57,320 KB
testcase_19 AC 131 ms
57,440 KB
testcase_20 AC 130 ms
57,440 KB
testcase_21 AC 132 ms
57,552 KB
testcase_22 AC 131 ms
57,476 KB
testcase_23 AC 131 ms
57,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Question47 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int count = 0;
		do {
			N /= 2;
			count++;
		} while (N >= 1);

		System.out.println(count);
	}

}
0