結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー FpmpAmpmFpmpAmpm
提出日時 2016-10-22 12:48:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 456 bytes
コンパイル時間 2,154 ms
コンパイル使用メモリ 77,572 KB
実行使用メモリ 41,676 KB
最終ジャッジ日時 2024-05-02 22:08:59
合計ジャッジ時間 6,191 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
41,420 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 130 ms
40,876 KB
testcase_04 AC 131 ms
41,080 KB
testcase_05 AC 131 ms
41,204 KB
testcase_06 WA -
testcase_07 AC 118 ms
40,124 KB
testcase_08 AC 132 ms
41,216 KB
testcase_09 AC 121 ms
40,204 KB
testcase_10 AC 116 ms
40,216 KB
testcase_11 AC 129 ms
41,144 KB
testcase_12 AC 129 ms
41,188 KB
testcase_13 AC 116 ms
40,220 KB
testcase_14 AC 131 ms
40,972 KB
testcase_15 AC 132 ms
41,228 KB
testcase_16 AC 131 ms
41,084 KB
testcase_17 AC 129 ms
41,128 KB
testcase_18 AC 128 ms
41,420 KB
testcase_19 AC 128 ms
41,576 KB
testcase_20 AC 132 ms
41,172 KB
testcase_21 AC 134 ms
41,356 KB
testcase_22 AC 137 ms
41,012 KB
testcase_23 AC 129 ms
41,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
    	String N = Integer.toBinaryString(sc.nextInt());
    	
    	System.out.println(("1".equals(N)) ? 0 : N.length());
	}
}
0