This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
#define maxn 500 | |
int main() | |
{ | |
int mat[maxn+5][maxn+5], n, k, sum=0; | |
scanf("%d %d", &n, &k); | |
int row = n; | |
int value = n*n; |