QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#511461 | #4825. Even and Odd Combinations | 42kangaroo | 0 | 0ms | 0kb | C++20 | 445b | 2024-08-09 22:17:51 | 2024-08-09 22:17:52 |
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)