CCCPaste

Untitled

#include 
#define MAX 500
int main()
{
   int a[MAX][MAX],n,m,niza[3], nova[MAX][MAX], k=0;
   scanf("%d%d",&n,&m);
   for (int i=0; i n * m) {
            continue;
        }
        for(int x = 0; x < n; x++) {
            for(int y = 0; y < m; y++) {
                niza[i] -= 1;
                if(niza[i] == 0) {
                    zbir += a[x][y];
                    break;
                }
                
            }
            if(niza[i] == 0) {
                break;
            }
        }
    }
    printf("%d\n", zbir);
    
    return 0;
}
/*
 5 4
 1 2 5 0
 7 2 3 1
 12 4 5 4
 6 1 0 1
 2 3 4 5
 1 7 6
 */