제출 #626792

#제출 시각아이디문제언어결과실행 시간메모리
626792MilosMilutinovicProsjecni (COCI16_prosjecni)C++14
24 / 120
1 ms320 KiB
/** * 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 timeMemoryGrader output
Fetching results...