제출 #133689

#제출 시각아이디문제언어결과실행 시간메모리
133689forelaxProsjecni (COCI16_prosjecni)C++14
24 / 120
2 ms376 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%2==0){ cout<<-1; return 0; } for(int i = 0 ; i < n ; i ++){ for(int j = 0 ; j < n ; j ++){ cout<<i*n+j+1<<" "; } cout<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...