답안 #113420

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
113420 2019-05-25T13:23:55 Z CaQtiml Prosjecni (COCI16_prosjecni) C++14
24 / 120
3 ms 384 KB
#include "bits/stdc++.h"
using namespace std;
int main()
{
	int n;
	cin >> n;
	int op=1;
	if(n==1)
	{
		cout << "1";
		exit(0);
	}
	if(n==2)
	{
		cout << "-1";
		exit(0);
	}
	for(int i=1;i<=n;i++)
	{
		for(int j=1;j<=n;j++)
		{
			cout << op << " ";
			op++;
		}
		cout << "\n";
	}
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 384 KB Average condition doesn't hold.
2 Correct 2 ms 384 KB Output is correct
3 Incorrect 2 ms 256 KB Average condition doesn't hold.
4 Correct 2 ms 256 KB Output is correct
5 Incorrect 2 ms 256 KB Average condition doesn't hold.
6 Incorrect 2 ms 256 KB Average condition doesn't hold.
7 Incorrect 2 ms 384 KB Average condition doesn't hold.
8 Incorrect 3 ms 384 KB Average condition doesn't hold.
9 Incorrect 2 ms 356 KB Average condition doesn't hold.
10 Incorrect 3 ms 384 KB Average condition doesn't hold.