結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー juger_jvjuger_jv
提出日時 2016-05-02 22:15:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 292 bytes
コンパイル時間 2,025 ms
コンパイル使用メモリ 74,584 KB
実行使用メモリ 50,404 KB
最終ジャッジ日時 2024-04-15 09:24:50
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
49,912 KB
testcase_01 AC 55 ms
50,028 KB
testcase_02 AC 57 ms
49,900 KB
testcase_03 AC 56 ms
50,284 KB
testcase_04 AC 55 ms
50,352 KB
testcase_05 AC 55 ms
50,288 KB
testcase_06 AC 56 ms
50,364 KB
testcase_07 AC 56 ms
50,348 KB
testcase_08 AC 55 ms
50,300 KB
testcase_09 AC 56 ms
50,292 KB
testcase_10 AC 55 ms
50,100 KB
testcase_11 AC 55 ms
50,124 KB
testcase_12 AC 56 ms
50,036 KB
testcase_13 AC 55 ms
50,016 KB
testcase_14 AC 55 ms
50,404 KB
testcase_15 AC 56 ms
50,304 KB
testcase_16 AC 55 ms
49,904 KB
testcase_17 AC 54 ms
50,012 KB
testcase_18 AC 55 ms
50,156 KB
testcase_19 AC 54 ms
50,332 KB
testcase_20 AC 55 ms
49,788 KB
testcase_21 AC 55 ms
50,152 KB
testcase_22 AC 54 ms
49,968 KB
testcase_23 AC 60 ms
50,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
class no47
{
    public static void main(String args[])throws IOException
    {
	BufferedReader sc=new BufferedReader(new InputStreamReader(System.in));
	int ans=0;
	int n=Integer.parseInt(sc.readLine());
	for(int idx=1;idx<n;idx*=2)ans++;
	System.out.println(ans);
    }
}
0