QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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";
}
}
Details
Tip: Click on the bar to expand more detailed information
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)