結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー Prai
提出日時 2018-02-17 18:32:04
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 27,648 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-24 12:15:52
合計ジャッジ時間 986 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
// #include<stdlib.h>
// #include<math.h>
// #include<string.h>

int main(int argc, char const *argv[])
{	
	int N;
	int count;
	int pow=1;

	printf("Saraが食べたいビスケットの数は?\n");
	scanf("%d",&N);

	while(N>pow){
		pow*=2;
		count++;
	}
	printf("%d\n",count);

	return 0;
}
0