結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー 水野嶺水野嶺
提出日時 2020-05-25 13:43:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 2,044 ms
コンパイル使用メモリ 73,804 KB
実行使用メモリ 41,384 KB
最終ジャッジ日時 2024-04-21 03:42:50
合計ジャッジ時間 6,652 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
41,120 KB
testcase_01 AC 118 ms
41,344 KB
testcase_02 AC 119 ms
41,168 KB
testcase_03 AC 116 ms
41,384 KB
testcase_04 AC 116 ms
41,296 KB
testcase_05 AC 121 ms
41,120 KB
testcase_06 AC 115 ms
41,188 KB
testcase_07 AC 113 ms
41,352 KB
testcase_08 AC 106 ms
39,816 KB
testcase_09 AC 115 ms
41,312 KB
testcase_10 AC 117 ms
41,380 KB
testcase_11 AC 119 ms
41,240 KB
testcase_12 AC 117 ms
40,136 KB
testcase_13 AC 106 ms
40,056 KB
testcase_14 AC 120 ms
41,148 KB
testcase_15 AC 118 ms
41,188 KB
testcase_16 AC 106 ms
40,028 KB
testcase_17 AC 117 ms
41,152 KB
testcase_18 AC 116 ms
41,252 KB
testcase_19 AC 122 ms
41,236 KB
testcase_20 AC 135 ms
41,080 KB
testcase_21 AC 135 ms
41,156 KB
testcase_22 AC 132 ms
41,160 KB
testcase_23 AC 131 ms
41,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Main
{
	public static void main (String[] args) 
	{
		// 入力値の読み込み
		Scanner sc = new Scanner(System.in);
		int  d = sc.nextInt();
		int count=0;
		int n =1;
		
		while(n < d){
		n = n*2;
		count += 1;
		}
		
		
		System.out.println(count);
	}
}
0