# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
626792 | MilosMilutinovic | Prosjecni (COCI16_prosjecni) | C++14 | 1 ms | 320 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.
/**
* author: wxhtzdy
* created: 11.08.2022 21:13:23
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
if (n % 2 == 1) {
int a = 1;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cout << a << " \n"[j == n - 1];
a += 1;
}
}
} else {
cout << -1 << '\n';
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |