結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| コンテスト | |
| ユーザー |
mattun_sec
|
| 提出日時 | 2017-05-18 01:28:45 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 205 bytes |
| コンパイル時間 | 151 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 21:06:46 |
| 合計ジャッジ時間 | 945 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <stdio.h>
int main(void) {
int input;
scanf("%d", &input);
int ans=0, biscuit=1;
while(1) {
if (biscuit >= input)
break;
ans++;
biscuit *= 2;
}
printf("%d\n",ans);
return 0;
}
mattun_sec