結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー FpmpAmpm
提出日時 2016-10-22 12:48:00
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 456 bytes
コンパイル時間 2,430 ms
コンパイル使用メモリ 74,388 KB
実行使用メモリ 54,204 KB
最終ジャッジ日時 2024-11-23 17:05:46
合計ジャッジ時間 5,890 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 20 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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