Submission #210423

# Submission time Handle Problem Language Result Execution time Memory
210423 2020-03-17T10:30:39 Z Fasho Prosjecni (COCI16_prosjecni) C++14
24 / 120
5 ms 392 KB
#include <bits/stdc++.h>
#define N 1000005
#define ll long long int 	
#define MP make_pair
#define pb push_back
#define ppb pop_back
#define sp " "
#define endl "\n"
#define fi first
#define se second
#define ii pair<int,int>
#define lli pair<ll,ll>
#define fast cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false)
#define fast2 freopen ("badhair.gir","r",stdin);freopen ("badhair.cik","w",stdout);
#define mod 1000000007
#define fs(x,y) for(ll i=1;i<=y;i++) cin>>x[i]
#define fo(i,x,y) for(ll i=x;i<=y;i++)
#define INF 1000000000005
#define ull unsigned long long int
using namespace std;

ll n,m,ar[N],sum,t;



int main()
{
	fast;
	cin>>n;
	if(n%2==0)
		return cout<<-1,0;
	fo(i,1,n*n)
	{
		cout<<i<<sp;
		if(i%n==0)
			cout<<endl;
	}
}

# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]
2 Correct 5 ms 376 KB Output is correct
3 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]
4 Correct 5 ms 376 KB Output is correct
5 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]
6 Incorrect 5 ms 392 KB Integer -1 violates the range [0, 1000000000]
7 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]
8 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]
9 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]
10 Incorrect 5 ms 376 KB Integer -1 violates the range [0, 1000000000]