結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー ちよちゃん
提出日時 2016-05-10 13:08:40
言語 Java
(openjdk 23)
結果
AC  
実行時間 146 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 3,151 ms
コンパイル使用メモリ 73,952 KB
実行使用メモリ 41,664 KB
最終ジャッジ日時 2024-10-05 13:28:03
合計ジャッジ時間 7,223 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki5 {
	
	public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		int x = 1;
		while(x<n){
			x = x + x;
			count++;
		}
		System.out.println(count);
	}
}
0