• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
2014>
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 4 5 6 7 8 9 下一页
2017年10月21日
android project
摘要: 阅读全文
posted @ 2017-10-21 11:53 2014> 阅读(91) 评论(0) 推荐(0)
2017年10月18日
全排列的实现
摘要: 1.递归实现 阅读全文
posted @ 2017-10-18 23:26 2014> 阅读(213) 评论(0) 推荐(0)
位运算
摘要: 1. 按位与 & and运算通常用于二进制的取位操作,例如一个数 and 1的结果就是取二进制的最末位。 相同位的两个数字都为1,则为1;若有一个不为1,则为0。 00101 11100 &;或者and) 00100 2. 按位或 | or运算通常用于二进制特定位上的无条件赋值,例如一个数or 1的 阅读全文
posted @ 2017-10-18 19:38 2014> 阅读(112) 评论(0) 推荐(0)
2017年8月9日
图的存储的4种形式
摘要: 图的存储有4种形式:邻接矩阵,前向星,邻接表,链式前向星(属于邻接表) 1.链接矩阵 这个是我们最常用的,开一个map[i][j] 初始化 map[i][i]=0,map[i][j]=inf; 初始化需要o(n*n),建图 m 缺点 :遍历效率较低,并且不能存储重边, 初始化效率低;图的空间开销大。 阅读全文
posted @ 2017-08-09 14:59 2014> 阅读(628) 评论(0) 推荐(0)
2017年8月8日
Humble Numbers HDU - 1058
摘要: A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24 阅读全文
posted @ 2017-08-08 15:10 2014> 阅读(151) 评论(0) 推荐(0)
Humble Numbers HDU - 1058 2分dp
摘要: JGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines. Half of these cities are rich in r 阅读全文
posted @ 2017-08-08 14:32 2014> 阅读(108) 评论(0) 推荐(0)
2017年8月7日
hdu-1024 Max Sum Plus Plus
摘要: Max Sum Plus Plus Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30478 Accepted Submission(s): 1 阅读全文
posted @ 2017-08-07 22:43 2014> 阅读(169) 评论(0) 推荐(0)
hdu-1176免费馅饼
摘要: 免费馅饼 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51189 Accepted Submission(s): 17854 Problem 阅读全文
posted @ 2017-08-07 15:08 2014> 阅读(104) 评论(0) 推荐(0)
2017年8月5日
dp 入门
摘要: 1.HDU 1003 求最长连续相加的和。 dp[i]=max(a[i],dp[i-1]+a[i]); dp[i]表示以 i 结尾的最大值。 再开/个strat去标记从哪里开始。 2.hdu 1087 求最长上升序列的和; dp[i]=max(dp[j])+a[i]; a[j]<a[i]; 3.HD 阅读全文
posted @ 2017-08-05 10:31 2014> 阅读(130) 评论(0) 推荐(0)
2017年7月31日
Lexicography
摘要: An anagram of a string is any string that can be formed using the same letters as the original. (We consider the original string an anagram of itself 阅读全文
posted @ 2017-07-31 13:25 2014> 阅读(203) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3