結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-10 13:08:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 3,883 ms
コンパイル使用メモリ 74,648 KB
実行使用メモリ 41,728 KB
最終ジャッジ日時 2024-04-15 15:04:25
合計ジャッジ時間 7,719 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
41,212 KB
testcase_01 AC 134 ms
41,556 KB
testcase_02 AC 131 ms
41,196 KB
testcase_03 AC 133 ms
41,280 KB
testcase_04 AC 134 ms
41,376 KB
testcase_05 AC 131 ms
41,728 KB
testcase_06 AC 134 ms
41,500 KB
testcase_07 AC 132 ms
41,472 KB
testcase_08 AC 133 ms
41,592 KB
testcase_09 AC 130 ms
41,248 KB
testcase_10 AC 133 ms
41,092 KB
testcase_11 AC 133 ms
41,728 KB
testcase_12 AC 134 ms
41,544 KB
testcase_13 AC 136 ms
41,356 KB
testcase_14 AC 119 ms
40,216 KB
testcase_15 AC 133 ms
41,600 KB
testcase_16 AC 132 ms
41,572 KB
testcase_17 AC 130 ms
41,360 KB
testcase_18 AC 132 ms
41,272 KB
testcase_19 AC 131 ms
41,344 KB
testcase_20 AC 134 ms
41,700 KB
testcase_21 AC 134 ms
41,720 KB
testcase_22 AC 132 ms
41,492 KB
testcase_23 AC 130 ms
41,504 KB
権限があれば一括ダウンロードができます

ソースコード

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