結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2020-05-15 09:35:54 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-17 15:59:10 |
合計ジャッジ時間 | 893 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 WA * 1 |
ソースコード
#include<stdio.h> int main(void){ int N; int d = 1; int c = 0; scanf("%d", &N); while(N - d > d){ d *= 2; c++; } printf("%d", c + 1); return 0; }