結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー mura40424mura40424
提出日時 2014-11-23 17:36:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 71,508 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-08-30 22:19:44
合計ジャッジ時間 6,605 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,872 KB
testcase_01 AC 119 ms
55,916 KB
testcase_02 AC 119 ms
56,052 KB
testcase_03 AC 121 ms
56,000 KB
testcase_04 AC 120 ms
55,712 KB
testcase_05 AC 120 ms
56,004 KB
testcase_06 AC 120 ms
55,740 KB
testcase_07 AC 119 ms
56,156 KB
testcase_08 AC 125 ms
56,220 KB
testcase_09 AC 124 ms
55,812 KB
testcase_10 AC 124 ms
55,692 KB
testcase_11 AC 124 ms
55,692 KB
testcase_12 AC 121 ms
55,988 KB
testcase_13 AC 122 ms
55,488 KB
testcase_14 AC 124 ms
55,924 KB
testcase_15 AC 124 ms
55,696 KB
testcase_16 AC 121 ms
55,736 KB
testcase_17 AC 121 ms
56,032 KB
testcase_18 AC 127 ms
55,740 KB
testcase_19 AC 122 ms
55,848 KB
testcase_20 AC 123 ms
56,060 KB
testcase_21 AC 124 ms
55,888 KB
testcase_22 AC 120 ms
55,848 KB
testcase_23 AC 120 ms
56,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner S = new Scanner(System.in);
		int N = S.nextInt();
		int x = 1;
		
		int i=0;
		for(i=0;x<N;i++){
			x*=2;
		}		

		System.out.println(i);
	}
}
0