結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2018-02-11 19:32:11 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 3,322 ms |
コンパイル使用メモリ | 73,908 KB |
実行使用メモリ | 37,100 KB |
最終ジャッジ日時 | 2024-11-17 13:50:07 |
合計ジャッジ時間 | 5,501 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
package yukiCoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00047 { public static void main(String[] args) { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); try { long input = Long.parseLong(bufferedReader.readLine()); int cnt = 0; for (int biscuits = 1 ; biscuits < input ; biscuits *= 2) { cnt++; } System.out.println(cnt); } catch (IOException e) { e.printStackTrace(); } } }