- 博客(2)
- 收藏
- 关注
原创 最大子序列和
01-复杂度2 Maximum Subsequence Sum #include #include using namespace std; const int maxn = 10010; int left=0,right=0; int MaxSubswqSum(int A[],int N){ int ThisSum[maxn]={0},MaxSum=0,j=0,neg=0; for(int ...
2020-02-20 20:28:40 116
原创 PAT 1077 Kuchiguse
《算法笔记》问题记录 PAT 1077 Kuchiguse (20分) 在问题A1077中,遇到测试点3(从0开始计算)错误,原因是PAT测试中不支持gets()函数的应用,在替换相同功能函数时字符串输入引起的问题。 初始代码 #include <cstdio> #include <cstring> void swap(char str[],int len){ cha...
2020-01-02 15:01:11 363 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人