摘要:
一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <cstring> using namespace std; void selectSong(int nums, const char* str) { int curre 阅读全文
posted @ 2020-08-02 21:10
repinkply
阅读(450)
评论(0)
推荐(0)
摘要:
一:解题思路 方法一:暴力破解法 方法二:动态规划 二:完整代码示例 (C++版和Java版) 方法一C++: #include <iostream> #include <vector> #include <string> #include <algorithm> using namespace s 阅读全文
posted @ 2020-08-02 17:59
repinkply
阅读(1084)
评论(0)
推荐(0)
摘要:
一:解题思路 这道题目可以扩展为:从0到n中,任意选出m个数字,然后任意通过加减乘除的组合,得到一个定值,求是否存在这样的组合? 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <vector> #include <algorith 阅读全文
posted @ 2020-08-02 17:00
repinkply
阅读(816)
评论(0)
推荐(0)
摘要:
一:解题思路 这道题目考察了稳定排序。 二:完整代码示例 (C++版和Java版) C++代码如下: #include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; s 阅读全文
posted @ 2020-08-02 11:54
repinkply
阅读(368)
评论(0)
推荐(0)
摘要:
一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <vector> using namespace std; int main() { int row1=0; int col1=0; int col2=0; while( 阅读全文
posted @ 2020-08-02 11:29
repinkply
阅读(485)
评论(0)
推荐(0)

浙公网安备 33010602011771号