| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 713737 | DepressedMG | Prosjecni (COCI16_prosjecni) | C++17 | 1 ms | 304 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
	ll n,a=1,i,j;
	cin>>n;
	if(n%2==0){
		cout<<"-1"<<endl;
	}
	else{
		for(i=0;i<n;i++){
			for(j=0;j<n;j++){
				cout<<a<<" ";
				a++;
			}
			cout<<endl;
		}
	}
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
