minimum number of flips to make l length substring have at least one 1 in binary string code example
Example: how to remove maximum number of characters in c++ cin,ignore
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');