結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー fal_rndfal_rnd
提出日時 2016-11-08 23:10:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 2,195 ms
コンパイル使用メモリ 74,220 KB
実行使用メモリ 41,680 KB
最終ジャッジ日時 2024-05-03 23:47:15
合計ジャッジ時間 6,606 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 139 ms
40,940 KB
testcase_02 AC 137 ms
41,160 KB
testcase_03 AC 138 ms
40,984 KB
testcase_04 AC 138 ms
41,304 KB
testcase_05 AC 138 ms
41,084 KB
testcase_06 AC 131 ms
41,256 KB
testcase_07 AC 130 ms
41,040 KB
testcase_08 AC 131 ms
40,920 KB
testcase_09 AC 132 ms
41,284 KB
testcase_10 AC 130 ms
41,004 KB
testcase_11 AC 132 ms
41,308 KB
testcase_12 AC 132 ms
41,180 KB
testcase_13 AC 132 ms
41,284 KB
testcase_14 AC 129 ms
41,500 KB
testcase_15 AC 131 ms
41,132 KB
testcase_16 AC 116 ms
40,016 KB
testcase_17 AC 133 ms
41,040 KB
testcase_18 AC 134 ms
41,580 KB
testcase_19 AC 136 ms
40,944 KB
testcase_20 AC 134 ms
41,228 KB
testcase_21 AC 132 ms
41,452 KB
testcase_22 AC 132 ms
40,928 KB
testcase_23 AC 130 ms
40,768 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.log10(s.nextInt())/Math.log10(2)+Math.nextDown(1)));
	}
}
0