목록2024/08/26 (1)
지우너
[코드트리] 겹치는 원소가 적은 부분 수열 C++
문제https://www.codetree.ai/missions/8/problems/subsequences-with-few-overlapping-elements?&utm_source=clipboard&utm_medium=text 코드#include #include using namespace std;const int MAX_N = 100001;int n, k;int num[MAX_N];unordered_map um;int main() { cin >> n >> k; for(int i=0; i> num[i]; } int r=0, answer=1; for(int l=0; l
Problem Solving
2024. 8. 26. 19:33