結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-04-08 07:07:13 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 711 ms / 1,000 ms |
| + 99µs | |
| コード長 | 143 bytes |
| 記録 | |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 36,352 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-21 13:15:03 |
| 合計ジャッジ時間 | 6,969 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
コンパイルメッセージ
main.c:1:7: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
1 | const m=1e9+7,s=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)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=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
| ^
main.c:1:25: warning: data definition has no type or storage class
1 | const m=1e9+7,s=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
| ^
main.c:1:28: warning: null character(s) preserved in literal
1 | const m=1e9+7,s=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
| ^
main.c:1:26: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
1 | const m=1e9+7,s=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
| ^
main.c:1:28: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
1 | const m=1e9+7,s=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:64: warning: return type defaults to 'int' [-Wimplicit-int]
1 | const m=1e9+7,s=1e9/6+3;*a=" M�#O�9`�7��p%?y�";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
| ^~~~
main.c: In function 'main':
main.c:1:64: warning: type of 'i' defaults to 'int' [-Wim
ソースコード
const m=1e9+7,s=1e9/6+3;*a="���M#O9`7p%?y";long n,x;main(i){scanf("%ld",&n);for(n<m?i=n%s,x=a[n/s]:0;i--;)x=x*n--%m;printf("%d",x);}
%20