QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#695456#8934. Challenge NPClonelywolf#WA 0ms3516kbC++20575b2024-10-31 20:04:492024-10-31 20:04:54

Judging History

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

  • [2024-10-31 20:04:54]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3516kb
  • [2024-10-31 20:04:49]
  • 提交

answer

#include <bits/stdc++.h>  
using namespace std;  

#define int long long  

signed main() {  
    ios::sync_with_stdio(false);
    cin.tie(nullptr);  

	int k;
	cin >> k;

	k += 2;
	
	vector<pair<int, int>> e;

	for (int i = 1; i <= k; i++) {
		for (int j = 1; j < i; j++) {
			e.push_back({2 * j - 1, 2 * i});
			e.push_back({2 * i - 1, 2 * j});
		}
	}	

	for (int i = 1; i <= k; i++) {
		cout << i << " " << i << " \n"[i == k];
	}
	cout << e.size() << "\n";
	for (auto [x, y] : e) {
		cout << x << " " << y << "\n";
	}

    return 0;
}  
  

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

1 1 2 2 3 3
6
1 4
3 2
1 6
5 2
3 6
5 4

result:

wrong answer Integer parameter [name=m] equals to 1, violates the range [0, 0]