結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,980 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 122 ms
55,976 KB
testcase_04 AC 122 ms
55,880 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 124 ms
55,544 KB
testcase_08 AC 124 ms
56,264 KB
testcase_09 AC 121 ms
55,548 KB
testcase_10 AC 123 ms
56,008 KB
testcase_11 AC 123 ms
56,048 KB
testcase_12 AC 126 ms
55,748 KB
testcase_13 AC 124 ms
56,324 KB
testcase_14 AC 126 ms
55,604 KB
testcase_15 AC 123 ms
56,224 KB
testcase_16 AC 122 ms
56,220 KB
testcase_17 AC 126 ms
56,136 KB
testcase_18 AC 119 ms
55,792 KB
testcase_19 AC 124 ms
56,084 KB
testcase_20 AC 126 ms
55,968 KB
testcase_21 AC 123 ms
55,580 KB
testcase_22 AC 124 ms
55,996 KB
testcase_23 AC 125 ms
55,916 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>=1){
			N /= 2;
			count++;
		}
		System.out.println(count);
	}
}
0