| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1340795 | kawhiet | Prosjecni (COCI16_prosjecni) | C++20 | 0 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
if (n % 2 == 0) {
cout << -1 << '\n';
} else {
int x = 1;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cout << x++ << ' ';
}
cout << '\n';
}
}
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
