7K12 blog

猫でも分かる何か

2023-11-24から1日間の記事一覧

ABC325 に参加した感想

B問題を誤読して冷えた実家 union-find で連結させる https://atcoder.jp/contests/abc325/submissions/46806218

データ構造の分割 LIB::MultiSplit

#include <bits/stdc++.h> using namespace std; namespace LIB { template<class MT>class MultiSplit { using ll=long long; using sl=set<ll>; template<class T>using ve=vector<T>; MT& ds; sl spl; template<class T>void push(ve<T>& t, T x) { t.push_back(x); } public: MultiSplit(MT& ds):ds(ds) { spl.</t></class></t></class></ll></class></bits/stdc++.h>…