結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー kuramukuramu
提出日時 2016-01-19 23:14:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 2,411 ms
コンパイル使用メモリ 74,864 KB
実行使用メモリ 53,464 KB
最終ジャッジ日時 2023-10-21 13:24:41
合計ジャッジ時間 4,782 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
52,328 KB
testcase_01 AC 57 ms
52,340 KB
testcase_02 AC 56 ms
53,448 KB
testcase_03 AC 56 ms
53,388 KB
testcase_04 AC 53 ms
52,360 KB
testcase_05 WA -
testcase_06 AC 57 ms
53,440 KB
testcase_07 AC 59 ms
53,444 KB
testcase_08 AC 53 ms
51,500 KB
testcase_09 AC 55 ms
52,360 KB
testcase_10 AC 56 ms
53,464 KB
testcase_11 AC 55 ms
53,448 KB
testcase_12 AC 55 ms
53,452 KB
testcase_13 AC 56 ms
53,440 KB
testcase_14 AC 57 ms
53,464 KB
testcase_15 AC 54 ms
52,308 KB
testcase_16 AC 58 ms
51,404 KB
testcase_17 AC 54 ms
52,312 KB
testcase_18 AC 54 ms
52,316 KB
testcase_19 AC 55 ms
53,456 KB
testcase_20 AC 53 ms
53,456 KB
testcase_21 AC 55 ms
52,360 KB
testcase_22 AC 57 ms
52,316 KB
testcase_23 AC 57 ms
52,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) {
	      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
	      String line = "";
	      int count = 0;
	      try {
	    	  int N = Integer.parseInt(stdReader.readLine());
	    	  while(N >Math.pow(2, (count++ + 1)));
	    	  System.out.println(count);
	    	  } catch (IOException e) {
			e.printStackTrace();
	      }
	}
}
0