結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー marumaru
提出日時 2017-09-25 07:45:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 3,412 ms
コンパイル使用メモリ 74,548 KB
実行使用メモリ 41,580 KB
最終ジャッジ日時 2024-04-26 21:30:52
合計ジャッジ時間 7,500 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
40,840 KB
testcase_01 AC 125 ms
41,416 KB
testcase_02 AC 131 ms
41,316 KB
testcase_03 AC 129 ms
41,292 KB
testcase_04 AC 125 ms
41,116 KB
testcase_05 AC 115 ms
40,412 KB
testcase_06 AC 131 ms
41,168 KB
testcase_07 AC 112 ms
40,032 KB
testcase_08 AC 114 ms
39,940 KB
testcase_09 AC 125 ms
40,868 KB
testcase_10 AC 124 ms
40,064 KB
testcase_11 AC 121 ms
41,324 KB
testcase_12 AC 127 ms
41,448 KB
testcase_13 AC 127 ms
41,580 KB
testcase_14 AC 125 ms
41,244 KB
testcase_15 AC 130 ms
41,196 KB
testcase_16 AC 112 ms
40,304 KB
testcase_17 AC 112 ms
40,224 KB
testcase_18 AC 114 ms
40,416 KB
testcase_19 AC 112 ms
40,300 KB
testcase_20 AC 129 ms
41,312 KB
testcase_21 AC 132 ms
41,204 KB
testcase_22 AC 131 ms
41,308 KB
testcase_23 AC 115 ms
40,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Bisuketto {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		final int N = scan.nextInt();
		int from = 0;
		int to = 0;
		int count = 0;
		for(int i=0;Math.pow(2,i)<N;i++) {
			count ++;
		}
			System.out.println(count);
	}


}
0