会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Radium_1209
2018年5月8日
最长公共子序列(LCS)
摘要: LCS:Longest Increasing Subsequence例题:Common SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Oth...
阅读全文
posted @ 2018-05-08 00:27 Radium_1209
阅读(92)
评论(0)
推荐(0)
素数求法
摘要: 方法一:暴力求解(慢O(sqrt(n)))从2开始遍历到sqrt(n),如果有能除尽的则不是素数,否则则是素数,需要空间小,速度慢。#include #include #include using namespace std;int prime(int x){ if ...
阅读全文
posted @ 2018-05-08 00:06 Radium_1209
阅读(155)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告