답안 #208912

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
208912 2020-03-12T12:40:08 Z Sensei Prosjecni (COCI16_prosjecni) C++14
24 / 120
6 ms 256 KB
/*
	DATE:		2020-03-12 15:38:28
	NAME:		
	PROBLEM:	COCI16_PROSJECNI
*/
#include <bits/stdc++.h>

using namespace std;

const int MAXN = 1e5;

int a[MAXN + 7];

int main() {
  int n;
  cin >> n;

  if (n % 2 == 1) {
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= n; j++) {
        printf("%d ", (i - 1) * n + (j - 1) + 1);
      }
      printf("\n");
    }
  }
  else {
    printf("-1\n");
  }

  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 128 KB Integer -1 violates the range [0, 1000000000]
2 Correct 5 ms 256 KB Output is correct
3 Incorrect 5 ms 256 KB Integer -1 violates the range [0, 1000000000]
4 Correct 5 ms 256 KB Output is correct
5 Incorrect 6 ms 256 KB Integer -1 violates the range [0, 1000000000]
6 Incorrect 5 ms 256 KB Integer -1 violates the range [0, 1000000000]
7 Incorrect 5 ms 256 KB Integer -1 violates the range [0, 1000000000]
8 Incorrect 5 ms 256 KB Integer -1 violates the range [0, 1000000000]
9 Incorrect 5 ms 256 KB Integer -1 violates the range [0, 1000000000]
10 Incorrect 5 ms 256 KB Integer -1 violates the range [0, 1000000000]