QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#511461#4825. Even and Odd Combinations42kangaroo0 0ms0kbC++20445b2024-08-09 22:17:512024-08-09 22:17:52

Judging History

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

  • [2024-08-09 22:17:52]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2024-08-09 22:17:51]
  • 提交

answer

//
// Created by 42kangaroo on 09/08/2024.
//
#include "bits/stdc++.h"

using namespace std;

signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	int t; cin >> t;
	while (t--) {
		int n, k; cin >> n >> k;
		vector<int> in(k);
		for (int i = 0; i < k; ++i) {
			cin >> in[i];
		}
		if (in.empty() || in[0] != 1) cout << "1 ";
		for (auto e: in) {
			if (e != 1) cout << e << " ";
		}
		cout << "\n";
	}
}

详细

Test #1:

score: 0
Wrong Answer on the first run

input:

6
3 0
2 1
1
3 3
1 2 3
3 1
1
3 1
2
3 1
3

output:

1 

2 3 

1 2 
1 3 

input:


output:


result:

wrong answer Integer parameter [name=n] equals to 1, violates the range [3, 3] (test case 1)