結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2017-09-18 13:18:52 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 55 ms / 5,000 ms |
コード長 | 418 bytes |
コンパイル時間 | 3,964 ms |
コンパイル使用メモリ | 73,488 KB |
実行使用メモリ | 37,032 KB |
最終ジャッジ日時 | 2024-11-08 02:28:12 |
合計ジャッジ時間 | 5,389 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No47 { public static void main(String[] args) throws IOException, NumberFormatException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int count = 0; for (int i = 0; Math.pow(2,i) < n; i++) count++; System.out.println(count); } }