This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub dgcnz/cp-library
template <typename T> map<T, int> compress(vector<T> values) { map<T, int> mp; int cnt = 0; for (auto v : values) mp[v]; for (auto &[k, v] : mp) v = cnt++; return mp; }
#line 1 "cplib/utils/compress.cpp" template <typename T> map<T, int> compress(vector<T> values) { map<T, int> mp; int cnt = 0; for (auto v : values) mp[v]; for (auto &[k, v] : mp) v = cnt++; return mp; }