Submission #631553

#TimeUsernameProblemLanguageResultExecution timeMemory
631553berrProsjecni (COCI16_prosjecni)C++17
24 / 120
1 ms320 KiB
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { ios_base::sync_with_stdio(false); cin.tie(0); int n; cin>>n; if(n%2==0) cout<<-1; else { for(int i=0; i<n; i++) { for(int l=1; l<=n; l++) { cout<<i*n+l<<" "; } cout<<"\n"; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...