結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー Prai
提出日時 2018-02-17 18:31:43
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 29,568 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-24 12:15:51
合計ジャッジ時間 1,317 ms
ジャッジサーバーID
(参考情報)
judge2 / 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