QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#672125#9415. Matrixzhouchenfeng#WA 0ms3616kbC++14459b2024-10-24 15:43:592024-10-24 15:43:59

Judging History

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

  • [2024-10-24 15:43:59]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3616kb
  • [2024-10-24 15:43:59]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

#define int long long


void solve(){
	int n;
	cin >> n;
	cout << "Yes\n";
	for (int i = 1;i <= n;i ++)
		cout << i << " \n"[i == n];
	for (int i = 2;i <= n;i ++){
		for (int j = 1;j <= n;j ++)
			cout << i + n - 1 + (i == n && j == n) << " \n"[j == n];
	}
}

signed main(){
	ios::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	int t = 1;
//	cin >> t;
	while(t --){
		solve();
	}
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2

output:

Yes
1 2
3 4

result:

ok Correct. (1 test case)

Test #2:

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

input:

3

output:

Yes
1 2 3
4 4 4
5 5 6

result:

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