QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#630328#9415. MatrixfutarianWA 0ms3824kbC++14404b2024-10-11 17:56:352024-10-11 17:56:40

Judging History

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

  • [2024-10-11 17:56:40]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3824kb
  • [2024-10-11 17:56:35]
  • 提交

answer

#include "bits/stdc++.h"
using namespace std;
int n;
signed main()
{
	scanf("%d",&n);
	for(int i = 1 ; i <= n ; i ++) printf("%d ",i);puts("");
	int w = n + 1;
	for(int j = 2 ; j <= n - 1 ; j ++)
	{
		printf("%d ",w ++);
		for(int i = 2 ; i <= n ; i ++) printf("%d ",1);
		puts("");
	}
	for(int i = 1 ; i <= n - 2 ; i ++) printf("%d ",1);
	printf("%d %d\n",2 * n - 1,2 * n);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3824kb

input:

2

output:

1 2 
3 4

result:

wrong answer Line [name=yesno] equals to "1 2 ", doesn't correspond to pattern "Yes|No" (test case 1)