結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー Natsume-MNatsume-M
提出日時 2016-12-09 16:42:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 216 bytes
コンパイル時間 2,529 ms
コンパイル使用メモリ 71,312 KB
実行使用メモリ 55,940 KB
最終ジャッジ日時 2023-08-19 03:15:09
合計ジャッジ時間 6,612 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,668 KB
testcase_01 AC 122 ms
55,484 KB
testcase_02 AC 117 ms
55,320 KB
testcase_03 AC 106 ms
55,908 KB
testcase_04 AC 110 ms
55,340 KB
testcase_05 AC 108 ms
55,916 KB
testcase_06 AC 105 ms
55,636 KB
testcase_07 AC 110 ms
55,640 KB
testcase_08 AC 110 ms
55,940 KB
testcase_09 AC 109 ms
55,864 KB
testcase_10 AC 113 ms
55,828 KB
testcase_11 AC 121 ms
55,788 KB
testcase_12 AC 119 ms
55,784 KB
testcase_13 AC 113 ms
55,704 KB
testcase_14 AC 118 ms
55,640 KB
testcase_15 AC 110 ms
55,332 KB
testcase_16 AC 109 ms
55,340 KB
testcase_17 AC 109 ms
55,336 KB
testcase_18 AC 107 ms
55,548 KB
testcase_19 AC 107 ms
55,328 KB
testcase_20 AC 112 ms
55,788 KB
testcase_21 AC 114 ms
55,764 KB
testcase_22 AC 111 ms
55,756 KB
testcase_23 AC 123 ms
55,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y47 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i, b=1, n = sc.nextInt();
		for (i=0; b<n; i++,b*=2);
		System.out.println(i);
		sc.close();
	}
}
0