結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー キョウチクキョウチク
提出日時 2022-05-15 17:52:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 5,013 ms
コンパイル使用メモリ 72,680 KB
実行使用メモリ 56,396 KB
最終ジャッジ日時 2023-10-11 03:38:41
合計ジャッジ時間 8,347 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,720 KB
testcase_01 AC 122 ms
55,572 KB
testcase_02 AC 124 ms
55,572 KB
testcase_03 AC 128 ms
55,772 KB
testcase_04 AC 120 ms
55,952 KB
testcase_05 AC 121 ms
55,580 KB
testcase_06 AC 121 ms
55,552 KB
testcase_07 AC 124 ms
55,724 KB
testcase_08 AC 125 ms
55,724 KB
testcase_09 AC 125 ms
55,788 KB
testcase_10 AC 122 ms
55,844 KB
testcase_11 AC 131 ms
55,740 KB
testcase_12 AC 126 ms
55,964 KB
testcase_13 AC 126 ms
55,720 KB
testcase_14 AC 125 ms
56,396 KB
testcase_15 AC 122 ms
56,032 KB
testcase_16 AC 126 ms
55,900 KB
testcase_17 AC 124 ms
55,524 KB
testcase_18 AC 124 ms
56,084 KB
testcase_19 AC 124 ms
53,872 KB
testcase_20 AC 122 ms
56,316 KB
testcase_21 AC 123 ms
55,544 KB
testcase_22 AC 122 ms
55,732 KB
testcase_23 AC 123 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Test10 {
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String line;
    line=sc.nextLine();
    int n=Integer.parseInt(line);
    int m=0;
    for(int i=1;i<n;i+=i){
      m++;
    }
    System.out.println(m);
    sc.close();
  }
}
0