#include <stdio.h>int main(){ int x,y,i,j,a[100001]={},k=0,m; scanf("%d %d",&x,&y); for(i=1;i<=x;i++){ scanf("%d",&a[i]); } for(i=1;i<=x-(y-1);i++){ for(j=1;j<=y-1;j++){ k=a[i+j]+k; } k+a[i]; 최대값 어케 구해ㅐ k=0; }return 0;}