#include <bits/stdc++.h>
using namespace std;
int n;
int main(){
ios::sync_with_stdio(false); cin.tie(0);
cin >> n;
if(n%2){
for(int i=1;i<=n*n;++i){
cout << i << " \n"[i%n==0];
}
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Unexpected end of file - int32 expected |
2 |
Correct |
2 ms |
500 KB |
Output is correct |
3 |
Incorrect |
2 ms |
500 KB |
Unexpected end of file - int32 expected |
4 |
Correct |
2 ms |
500 KB |
Output is correct |
5 |
Incorrect |
2 ms |
604 KB |
Unexpected end of file - int32 expected |
6 |
Incorrect |
2 ms |
604 KB |
Unexpected end of file - int32 expected |
7 |
Incorrect |
2 ms |
604 KB |
Unexpected end of file - int32 expected |
8 |
Incorrect |
2 ms |
604 KB |
Unexpected end of file - int32 expected |
9 |
Incorrect |
2 ms |
604 KB |
Unexpected end of file - int32 expected |
10 |
Incorrect |
2 ms |
604 KB |
Unexpected end of file - int32 expected |