Template:cpp/algorithm/dsc generate n