algo — C++23 日本語リファレンス GitHub

partitions

関数 · nの全ての整数分割についてfを呼ぶ

inline std::vector<std::vector<int>> partitions(int n);

概要

nの全ての整数分割を返す

計算量

関連項目