趋势科技C++笔试题记录。第二题:给定硬币面值数组[1,5,10,20,50,100]以及每个硬币的数量(有限),求能组成一个指定值m的所有组合,输出各种组合长度之和。样例输入:6 5 4 3 2 111输出:12解析:[1,1,1,1,1,1,5] [1 5 5] [1 10],长度分别为7 3 2,则输出12 #include<bits/stdc++.h> using namespace std; vector<int> split(string str, string pattern) { string::size_type pos; vector&l...