QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#608994#9415. MatrixUESTC_DebugSimulator#WA 0ms3636kbC++17396b2024-10-04 10:08:552024-10-04 10:08:56

Judging History

你现在查看的是最新测评结果

  • [2024-10-04 10:08:56]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3636kb
  • [2024-10-04 10:08:55]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long
int n;
int a[100][100];
signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
	cin>>n;
	cout<<"Yes\n";
	a[1][1]=1;a[1][2]=2;a[2][1]=3;a[2][2]=4;
	for(int i=1;i<=n;i++)
	{
		for(int j=1;j<=n;j++)
		{
			if(a[i][j]==0) cout<<"1 ";
			else cout<<a[i][j]<<" ";
		}
		cout<<"\n";
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3560kb

input:

2

output:

Yes
1 2 
3 4 

result:

ok Correct. (1 test case)

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3636kb

input:

3

output:

Yes
1 2 1 
3 4 1 
1 1 1 

result:

wrong answer Integer 5 didn't appear. (test case 1)