#include <iostream>
#include <vector>
#include <numeric>
int f(int x, std::vector<int>& v)
{
return x + v.size();
}
int main()
{
std::vector<std::vector<int>> vv{{1,2,3},{1,1},{4,1,2,3},{9},{1,2,3,4,5,6,7,8,9,0}};
int count = 0;
std::cout << std::accumulate(vv.begin(), vv.end(), 0, f) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8bnVtZXJpYz4KCmludCBmKGludCB4LCBzdGQ6OnZlY3RvcjxpbnQ+JiB2KQp7CglyZXR1cm4geCArIHYuc2l6ZSgpOwkKfQppbnQgbWFpbigpIAp7CglzdGQ6OnZlY3RvcjxzdGQ6OnZlY3RvcjxpbnQ+PiB2dnt7MSwyLDN9LHsxLDF9LHs0LDEsMiwzfSx7OX0sezEsMiwzLDQsNSw2LDcsOCw5LDB9fTsKCWludCBjb3VudCA9IDA7CgkKCXN0ZDo6Y291dCA8PCBzdGQ6OmFjY3VtdWxhdGUodnYuYmVnaW4oKSwgdnYuZW5kKCksIDAsIGYpIDw8IHN0ZDo6ZW5kbDsKfQ==