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,17 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x;
cin >> n >> k >> x;
vector<vector<int>> hash(9, vector<int>(n, 0));
for (int i = 0; i < n; i++) {
int a;
cin >> a;
if (i == 0)
hash[a][i] = 1;
else
hash[a][i] = hash[a][i - 1] + 1;
}
}