結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー 8130Tsk8130Tsk
提出日時 2015-07-27 17:07:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 309 bytes
コンパイル時間 3,541 ms
コンパイル使用メモリ 72,064 KB
実行使用メモリ 57,676 KB
最終ジャッジ日時 2023-09-23 03:59:24
合計ジャッジ時間 7,618 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,940 KB
testcase_01 AC 125 ms
55,580 KB
testcase_02 AC 124 ms
55,664 KB
testcase_03 AC 122 ms
55,852 KB
testcase_04 AC 121 ms
55,660 KB
testcase_05 AC 121 ms
55,872 KB
testcase_06 AC 124 ms
57,676 KB
testcase_07 AC 123 ms
55,564 KB
testcase_08 AC 123 ms
56,088 KB
testcase_09 AC 123 ms
55,440 KB
testcase_10 AC 124 ms
55,672 KB
testcase_11 AC 123 ms
55,900 KB
testcase_12 AC 124 ms
55,608 KB
testcase_13 AC 125 ms
55,420 KB
testcase_14 AC 124 ms
55,796 KB
testcase_15 AC 123 ms
55,924 KB
testcase_16 AC 124 ms
55,664 KB
testcase_17 AC 125 ms
55,672 KB
testcase_18 AC 123 ms
55,880 KB
testcase_19 AC 124 ms
55,428 KB
testcase_20 AC 123 ms
55,852 KB
testcase_21 AC 122 ms
53,592 KB
testcase_22 AC 122 ms
55,988 KB
testcase_23 AC 123 ms
55,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No47 {
	
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		 
		int N= sc.nextInt();
		
		int count=0;
		int k = 1;
		while(k<N){
			count++;
			k=k*2;
		}
			
			System.out.println(count);
		
	}

}
0