結果
問題 | No.496 ワープクリスタル (給料日前編) |
ユーザー |
👑 ![]() |
提出日時 | 2017-06-14 07:03:49 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 210 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 29,824 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 16:50:13 |
合計ジャッジ時間 | 1,112 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=d[p-a][q-b]+c)?d[p][q]=i?t:(p+q)*k:0;printf("%d",d[x][y]);} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] main.c:1:13: warning: data definition has no type or storage class 1 | d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=d[p-a][q-b]+c)?d[p][q]=i?t:(p+q)*k:0;printf("%d",d[x][y]);} | ^ main.c:1:13: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:15: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=d[p-a][q-b]+c)?d[p][q]=i?t:(p+q)*k:0;printf("%d",d[x][y]);} | ^ main.c:1:17: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=d[p-a][q-b]+c)?d[p][q]=i?t:(p+q)*k:0;printf("%d",d[x][y]);} | ^ main.c:1:19: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int] 1 | d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=d[p-a][q-b]+c)?d[p][q]=i?t:(p+q)*k:0;printf("%d",d[x][y]);} | ^ main.c:1:21: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int] 1 | d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=
ソースコード
d[110][110];a,b,c,x,y,n,k,p,q,t;main(i){for(scanf("%d%d%d%d",&x,&y,&n,&k);i--+n;scanf("%d%d%d",&a,&b,&c))for(p=x;p>=a;p--)for(q=y;q>=b;q--)d[p][q]>=(t=d[p-a][q-b]+c)?d[p][q]=i?t:(p+q)*k:0;printf("%d",d[x][y]);}