結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー GodNegotoGodNegoto
提出日時 2019-11-05 17:32:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 3,639 ms
コンパイル使用メモリ 72,480 KB
実行使用メモリ 56,688 KB
最終ジャッジ日時 2023-10-13 02:24:35
合計ジャッジ時間 7,764 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,320 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 119 ms
56,292 KB
testcase_04 AC 119 ms
53,976 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 118 ms
56,336 KB
testcase_08 AC 119 ms
55,928 KB
testcase_09 AC 120 ms
56,120 KB
testcase_10 AC 120 ms
55,740 KB
testcase_11 AC 122 ms
55,976 KB
testcase_12 AC 122 ms
56,088 KB
testcase_13 AC 122 ms
56,140 KB
testcase_14 AC 122 ms
55,808 KB
testcase_15 AC 120 ms
55,808 KB
testcase_16 AC 120 ms
55,972 KB
testcase_17 AC 120 ms
56,456 KB
testcase_18 AC 121 ms
56,448 KB
testcase_19 AC 121 ms
56,008 KB
testcase_20 AC 121 ms
56,200 KB
testcase_21 AC 119 ms
56,688 KB
testcase_22 AC 119 ms
55,872 KB
testcase_23 AC 119 ms
56,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class sample6 {
	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int cnt = 0;
	while(N != 0) {
		N = N / 2;
		cnt++;
	}
	System.out.println(cnt);
	}
}
0