結果

問題 No.502 階乗を計算するだけ
コンテスト
ユーザー %20
提出日時 2017-04-11 12:14:23
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 755 ms / 1,000 ms
+ 544µs
コード長 129 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 51 ms
コンパイル使用メモリ 36,864 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-21 13:21:36
合計ジャッジ時間 10,142 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 52
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      | ^
main.c:1:4: warning: null character(s) preserved in literal
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      |    ^
main.c:1:2: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      |  ^
main.c:1:4: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:35: warning: data definition has no type or storage class
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      |                                   ^
main.c:1:35: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:37: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      |                                     ^~~~
main.c: In function 'main':
main.c:1:50: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | *a="�!�    M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';��';printf("%d",x);}
      |                                                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | *a="�!�    M�#O�9`

ソースコード

diff #
raw source code

*a="!	���M#O9`7p%?y";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[1+n/ *a]:0;n%*a;)x=x*n--%';';printf("%d",x);}
0