Submission #94164

# Submission time Handle Problem Language Result Execution time Memory
94164 2019-01-16T12:11:27 Z bkinik Prosjecni (COCI16_prosjecni) C++14
24 / 120
2 ms 376 KB
#include<bits/stdc++.h>
using namespace std;

#define pob pop_back
#define mp make_pair
#define pb push_back
#define mid (l+r)/2
#define test printf("test\n")
#define st first
#define nd second
#define superman ios::sync_with_stdio(0);cin.tie(0);

typedef long long ll;
typedef pair<ll,ll> pll;

ll INF = 1e9;
ll mod = 1e9+7;
double pi = acos(-1);

ll l,k,m,n,ans,r;

int main() {
	superman
	//freopen(".gir","r",stdin);
	//freopen(".cik","w",stdout);
	cin>>n;
	if(n%2 == 0) {
		cout<<-1<<endl;
		return 0;
	}
	ll cnt = 1;
	for(int i=0; i<n; i++) {
		for(int j=0; j<n-1; j++) {
			cout<<cnt++<<' ';
		}
		cout<<cnt++<<endl;
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Integer -1 violates the range [0, 1000000000]
2 Correct 2 ms 256 KB Output is correct
3 Incorrect 2 ms 252 KB Integer -1 violates the range [0, 1000000000]
4 Correct 2 ms 376 KB Output is correct
5 Incorrect 2 ms 376 KB Integer -1 violates the range [0, 1000000000]
6 Incorrect 2 ms 376 KB Integer -1 violates the range [0, 1000000000]
7 Incorrect 2 ms 376 KB Integer -1 violates the range [0, 1000000000]
8 Incorrect 2 ms 248 KB Integer -1 violates the range [0, 1000000000]
9 Incorrect 2 ms 376 KB Integer -1 violates the range [0, 1000000000]
10 Incorrect 2 ms 252 KB Integer -1 violates the range [0, 1000000000]