c/c++
Reoger
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
利用递归实现10进制转化成任意进制
c++/c代码实现过程 #include #include using namespace std; void translation(char *s,int a,int b); int main(){ cout<<"请输入要转化的数字"; int a ,b; cin>>a; cout<<"请输入要转化的进制"; cin>>b; char s[80]; translation(s,a,b); c原创 2016-03-16 21:21:18 · 3318 阅读 · 0 评论 -
计算最长增长子序列(简单,暴力法)
#include<iostream> #include<vector> using namespace std;//计算最长增长子序列的长度 int getMaxLen(vector<int> data){ int len = data.size(); int dp[len+1]={1};//辅助数组 int maxLen = 0; for(int i=原创 2017-03-27 12:10:43 · 804 阅读 · 0 评论
分享