結果
問題 | No.41 貯金箱の溜息(EASY) |
ユーザー | ciel |
提出日時 | 2015-11-22 00:24:10 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 36 ms / 5,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-09-13 17:09:06 |
合計ジャッジ時間 | 640 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 35 ms
6,812 KB |
testcase_01 | AC | 36 ms
6,940 KB |
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class 2 | A[M+1]={1},i,z;main(y){for(z=10;z--;)for(i=0;i<=M-z-!z;i++)A[i+z+!z]=(A[i+z+!z]+A[i])%1000000009;long long m;for(;~scanf("%lld",&m);)--y&&printf("%d\n",A[m/111111]);exit(0);} | ^ main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘A’ [-Wimplicit-int] main.c:2:12: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 2 | A[M+1]={1},i,z;main(y){for(z=10;z--;)for(i=0;i<=M-z-!z;i++)A[i+z+!z]=(A[i+z+!z]+A[i])%1000000009;long long m;for(;~scanf("%lld",&m);)--y&&printf("%d\n",A[m/111111]);exit(0);} | ^ main.c:2:14: warning: type defaults to ‘int’ in declaration of ‘z’ [-Wimplicit-int] 2 | A[M+1]={1},i,z;main(y){for(z=10;z--;)for(i=0;i<=M-z-!z;i++)A[i+z+!z]=(A[i+z+!z]+A[i])%1000000009;long long m;for(;~scanf("%lld",&m);)--y&&printf("%d\n",A[m/111111]);exit(0);} | ^ main.c:2:16: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | A[M+1]={1},i,z;main(y){for(z=10;z--;)for(i=0;i<=M-z-!z;i++)A[i+z+!z]=(A[i+z+!z]+A[i])%1000000009;long long m;for(;~scanf("%lld",&m);)--y&&printf("%d\n",A[m/111111]);exit(0);} | ^~~~ main.c: In function ‘main’: main.c:2:16: warning: type of ‘y’ defaults to ‘int’ [-Wimplicit-int] main.c:2:116: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 2 | A[M+1]={1},i,z;main(y){for(z=10;z--;)for(i=0;i<=M-z-!z;i++)A[i+z+!z]=(A[i+z+!z]+A[i])%1000000009;long long m;for(;~scanf("%lld",&m);)--y&&printf("%d\n",A[m/111111]);exit(0);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | #define M 1000000 main.c:2:116: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-m
ソースコード
#define M 1000000 A[M+1]={1},i,z;main(y){for(z=10;z--;)for(i=0;i<=M-z-!z;i++)A[i+z+!z]=(A[i+z+!z]+A[i])%1000000009;long long m;for(;~scanf("%lld",&m);)--y&&printf("%d\n",A[m/111111]);exit(0);}