hiho week 194 register

Ended

Participants:187

Verdict:Accepted
Score:100 / 100
Submitted:2018-03-24 17:41:03

Lang:GCC

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define cha 0.000001
//5*5+1+1
double a[61][61],op[6][6],f[3601][27];
int main()
{
    long h,w,d,i,j,k,l,count,value;
    double z;
    scanf("%ld%ld%ld",&h,&w,&d);
    for (i=1;i<=h;i++)
        for (j=1;j<=w;j++)
            scanf("%lf",&a[i][j]);
//  for (i=1;i<=h-d+1;i++)
//      for (j=1;j<=w-d+1;j++)
//          scanf("%lf",&op[i][j]);
    count=0;
    for (i=1;i<=h-d+1;i++)
        for (j=1;j<=w-d+1;j++)
        {
            count++;
            value=0;
            for (k=1;k<=d;k++)
                for (l=1;l<=d;l++)
                {
                    value++;
                    f[count][value]=a[i-1+k][j-1+l];
                }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX