結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-04-09 17:12:05 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 956 ms / 1,000 ms |
| コード長 | 131 bytes |
| 記録 | |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 21:08:22 |
| 合計ジャッジ時間 | 11,382 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)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�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)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�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)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�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:40: warning: return type defaults to 'int' [-Wimplicit-int]
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
| ^~~~
main.c: In function 'main':
main.c:1:47: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)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`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
main.c:1:47: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | *a=" M�#O�9`
ソースコード
*a="���M#O9`7p%?y";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' !']:0;n%' !';)x=x*n--%';';printf("%d",x);}
%20