Files
contests/misc/hsg-hn-2025/denlong.cpp

18 lines
297 B
C++

#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;
}
}