結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-04-08 20:35:43 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 130 bytes |
| 記録 | |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 28,928 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-17 23:56:31 |
| 合計ジャッジ時間 | 11,056 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
ソースコード
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);}
%20