結果
問題 |
No.502 階乗を計算するだけ
|
ユーザー |
![]() |
提出日時 | 2017-04-08 07:00:17 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 897 ms / 1,000 ms |
コード長 | 144 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-17 22:51:06 |
合計ジャッジ時間 | 7,447 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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+2;*a=" F&.(�Ze�T\rB3 S2";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+2;*a=" F&.(�Ze�T\rB3 S2";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+2;*a=" F&.(�Ze�T\rB3 S2";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+2;*a=" F&.(�Ze�T\rB3 S2";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+2;*a=" F&.(�Ze�T\rB3 S2";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+2;*a=" F&.(�Ze�T\rB3 S2";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:65: warning: return type defaults to 'int' [-Wimplicit-int] 1 | const m=1e9+7,s=1e9/6+2;*a=" F&.(�Ze�T\rB3 S2";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:65: warning: type of 'i' defaults to 'i
ソースコード
const m=1e9+7,s=1e9/6+2;*a="���F&.(ZeT\rB3 S2";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);}