結果

問題 No.502 階乗を計算するだけ
ユーザー %20
提出日時 2017-04-08 20:47:44
言語 C
(gcc 13.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 130 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-17 23:56:44
合計ジャッジ時間 11,101 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 49 TLE * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:7: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |       ^
main.c:1:15: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |               ^
main.c:1:23: warning: data definition has no type or storage class
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |                       ^
main.c:1:24: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |                        ^
main.c:1:26: warning: null character(s) preserved in literal
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |                          ^
main.c:1:26: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |                          ^~~~~~~~~~~~~~~~~~~~~~
main.c:1:58: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
      |                                                          ^~~~
main.c: In function 'main':
main.c:1:65: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | const m=1e9+7,s=2e8+2;*a="   =��$�0��|�'P7�*";long n,x;main

ソースコード

diff #

const m=1e9+7,s=2e8+2;*a="���=$0|'P7*";long n,x;main(){scanf("%ld",&n);for(n<m?x=a[n/s]:0;n%s;)x=x*n--%m;printf("%d",x);}
0