;f[0]=0; forforscanf; forscanf; for for intt=j-1; ift=n; intss=a[t][i]; for ifbreak; f[i]=max; t--; ift=n; ss+=a[t][i-k]; } printf;