結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー shallow
提出日時 2017-09-06 20:44:42
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-06 23:56:22
合計ジャッジ時間 1,000 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main() {
  long long int N;
  int i, ans = 1;
  scanf("%lld", &N);
  for (i = 0; ans < N; i++) {
    ans *= 2;
    printf("ans=%d i=%d\n", ans, i);
  }
  printf("%d\n", i);
  return 0;
}
0