結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
40,088 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 133 ms
40,996 KB
testcase_04 AC 131 ms
40,984 KB
testcase_05 AC 132 ms
41,244 KB
testcase_06 WA -
testcase_07 AC 132 ms
41,352 KB
testcase_08 AC 133 ms
41,160 KB
testcase_09 AC 135 ms
41,212 KB
testcase_10 AC 129 ms
41,232 KB
testcase_11 AC 126 ms
40,920 KB
testcase_12 AC 132 ms
41,184 KB
testcase_13 AC 119 ms
39,908 KB
testcase_14 AC 131 ms
41,016 KB
testcase_15 AC 118 ms
40,156 KB
testcase_16 AC 131 ms
40,912 KB
testcase_17 AC 133 ms
41,024 KB
testcase_18 AC 132 ms
40,792 KB
testcase_19 AC 133 ms
41,116 KB
testcase_20 AC 120 ms
39,996 KB
testcase_21 AC 134 ms
41,320 KB
testcase_22 AC 133 ms
41,080 KB
testcase_23 AC 118 ms
39,900 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))));
	}
}
0