結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2017-07-23 20:52:01 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 3,608 ms |
コンパイル使用メモリ | 77,328 KB |
実行使用メモリ | 41,944 KB |
最終ジャッジ日時 | 2024-10-09 11:04:07 |
合計ジャッジ時間 | 7,859 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 21 |
ソースコード
import java.util.Scanner; public class BiscuitsBeDoubled { public static void main(String[] args) { int biscuits = 1; Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for (int i = 0; biscuits <= N; i++) { biscuits = biscuits * 2; if(biscuits <= N){ System.out.println(i); } } } }