Submission #713737

#TimeUsernameProblemLanguageResultExecution timeMemory
713737DepressedMGProsjecni (COCI16_prosjecni)C++17
24 / 120
1 ms304 KiB
#include<bits/stdc++.h> #define ll long long using namespace std; int main(){ ll n,a=1,i,j; cin>>n; if(n%2==0){ cout<<"-1"<<endl; } else{ for(i=0;i<n;i++){ for(j=0;j<n;j++){ cout<<a<<" "; a++; } cout<<endl; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...