結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー HEGO55HEGO55
提出日時 2017-05-14 01:49:12
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 3,218 ms
コンパイル使用メモリ 71,568 KB
実行使用メモリ 58,164 KB
最終ジャッジ日時 2023-10-13 16:21:03
合計ジャッジ時間 7,299 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,744 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 127 ms
55,652 KB
testcase_04 AC 124 ms
55,940 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 126 ms
55,796 KB
testcase_08 AC 126 ms
55,960 KB
testcase_09 AC 127 ms
53,684 KB
testcase_10 AC 126 ms
55,612 KB
testcase_11 AC 127 ms
55,784 KB
testcase_12 AC 125 ms
55,652 KB
testcase_13 AC 127 ms
55,792 KB
testcase_14 AC 127 ms
55,680 KB
testcase_15 AC 127 ms
56,132 KB
testcase_16 AC 128 ms
56,140 KB
testcase_17 AC 126 ms
55,932 KB
testcase_18 AC 126 ms
55,616 KB
testcase_19 AC 127 ms
55,844 KB
testcase_20 AC 124 ms
56,052 KB
testcase_21 AC 125 ms
56,008 KB
testcase_22 AC 128 ms
56,240 KB
testcase_23 AC 126 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Test30{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		
		while(N>0){
			N /= 2;
			count++;
		}
		System.out.println(count);
	}
}
0