結果

問題 No.219 巨大数の概算
コンテスト
ユーザー testestest
提出日時 2016-02-18 00:34:52
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 8 ms / 1,500 ms
コード長 130 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 137 ms
コンパイル使用メモリ 29,128 KB
最終ジャッジ日時 2026-02-23 20:38:07
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:19: warning: data definition has no type or storage class
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a)*10)%10,a=f=log10(a)*b));}
      |                   ^
main.c: In function ‘main’:
main.c:1:44: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a)*10)%10,a=f=log10(a)*b));}
      |                                            ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a)*10)%10,a=f=log10(a)*b));}
main.c:1:55: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a)*10)%10,a=f=log10(a)*b));}
      |                                                      ~^     ~~
      |                                                       |     |
      |                                                       int * long int *
      |                                                      %ld
main.c:1:65: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a)*10)%10,a=f=log10(a)*b));}
      |                                                                 ^~~~~~
main.c:1:65: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:94: warning: incompatible implicit declaration of built-in function ‘pow’ [-Wbuiltin-declaration-mismatch]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b

ソースコード

diff #
raw source code

long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a)*10)%10,a=f=log10(a)*b));}
0