제출 #146722

#제출 시각아이디문제언어결과실행 시간메모리
146722fran_1024Prosjecni (COCI16_prosjecni)C++14
24 / 120
2 ms376 KiB
#include <iostream>
using namespace std;

int main() {
	int n;
	cin >> n;
	int x = n * n;
	if(n & 1) for(int i = 0; i < x; i++) {
		cout << i + 1 << ' ';
		if((i + 1) % n == 0) {
			cout << '\n';
		}
	} else cout << -1;
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...