結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー fal_rndfal_rnd
提出日時 2016-11-08 23:25:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 198 bytes
コンパイル時間 2,392 ms
コンパイル使用メモリ 73,964 KB
実行使用メモリ 41,488 KB
最終ジャッジ日時 2024-05-03 23:48:11
合計ジャッジ時間 6,273 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,168 KB
testcase_01 AC 132 ms
40,916 KB
testcase_02 AC 133 ms
41,184 KB
testcase_03 AC 135 ms
41,488 KB
testcase_04 AC 135 ms
41,100 KB
testcase_05 AC 118 ms
40,112 KB
testcase_06 AC 135 ms
41,196 KB
testcase_07 AC 132 ms
41,436 KB
testcase_08 AC 135 ms
41,180 KB
testcase_09 AC 135 ms
41,448 KB
testcase_10 AC 135 ms
41,480 KB
testcase_11 AC 135 ms
41,188 KB
testcase_12 AC 134 ms
41,176 KB
testcase_13 AC 134 ms
41,396 KB
testcase_14 AC 136 ms
41,308 KB
testcase_15 AC 134 ms
40,824 KB
testcase_16 AC 134 ms
41,036 KB
testcase_17 AC 135 ms
41,376 KB
testcase_18 AC 142 ms
41,304 KB
testcase_19 AC 137 ms
41,488 KB
testcase_20 AC 138 ms
41,428 KB
testcase_21 AC 140 ms
41,276 KB
testcase_22 AC 138 ms
41,320 KB
testcase_23 AC 138 ms
41,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class B{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		System.out.println((int)(Math.ceil(Math.log10(s.nextInt())/Math.log10(2))));
	}
}
0