QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#624216#9415. MatrixdztlbWA 0ms3640kbC++14413b2024-10-09 15:15:232024-10-09 15:15:23

Judging History

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

  • [2024-10-09 15:15:23]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3640kb
  • [2024-10-09 15:15:23]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N=1005;
int n;
signed main(){
	cin>>n;
	puts("Yes");
	for(int i=1;i<=n;++i){
		cout<<i<<' ';
	} cout<<'\n';
	for(int i=2;i<=n;++i){
		cout<<i+n-1<<' ';
		for(int j=2;j<=n;++j){
			if(i==n&&j==n) cout<<2*n<<' ';
			else cout<<1<<' ';
		}
		cout<<'\n';
	}
	return 0;
}
/*
3 4
X.X.
...X
...X
....
....
....
*/

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: 3640kb

input:

3

output:

Yes
1 2 3 
4 1 1 
5 1 6 

result:

wrong answer The number of quadruples 3 is invalid. (test case 1)