Precreation contest files

This commit is contained in:
2026-02-11 11:28:23 +07:00
parent 0a8ea477bb
commit cb9f7cab30
134 changed files with 1848 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
5
5
1 0 0 1 2
6
3 2 0 4 5 1
6
1 2 0 1 3 2
4
0 3 4 1
5
0 0 0 0 0

View File

@@ -0,0 +1,5 @@
1 2 4 3 2 1
1 6 5 4 3 2 1
1 3 5 4 3 2 1
1 3 3 2 1
1 1 1 1 1 1

View File

@@ -0,0 +1,31 @@
#include "iostream"
#include <map>
using namespace std;
void solve() {
int n, x;
cin >> n;
map<int, int> hash_map;
for (int i = 0; i < n; i++) {
cin >> x;
if (hash_map.count(x) == 0)
hash_map[x] = 1;
else
hash_map[x]++;
}
for (int k = 0; k <= n; k++) {
int cur_mex = 0;
for (auto &i : hash_map) {
}
}
}
int main() {
int t;
cin >> t;
while (t--)
solve();
}