結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー maru
提出日時 2017-09-25 07:45:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 3,745 ms
コンパイル使用メモリ 77,304 KB
実行使用メモリ 54,272 KB
最終ジャッジ日時 2024-11-14 12:54:58
合計ジャッジ時間 7,960 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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