摘要: 再说继承:继承是类与类之间的一种关系,对于一个参数,在继承之后,会在子类中隐藏自动的加上一个代码块super()关键字:super 原本学了一个this关键字,在复习一下,this关键字是该类直接调用对象进行操作,而super也差不多,只是调用的是父类为什么要有这样一个代码块super()/this... 阅读全文
posted @ 2015-08-25 19:43 Painting、时光 阅读(105) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4336转自http://www.cnblogs.com/zhj5chengfeng/archive/2013/03/02/2939601.html做法分析由于卡片最多只有 20 种,使用状态压缩,用 0 表示这种卡... 阅读全文
posted @ 2015-08-25 18:33 Painting、时光 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4334二分T。。/************************************************* Author :Powatr* Created Time :2015-8-25 ... 阅读全文
posted @ 2015-08-25 17:54 Painting、时光 阅读(141) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4324/*搜索一个三角形,用vector+vis来减少复杂度*//************************************************* Author :Powatr* C... 阅读全文
posted @ 2015-08-25 15:15 Painting、时光 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4325/*upper_bound 找大于a[i]的最近的下标lower_bound 找大于等于a[i]的最近的下标1 2 4 4 4 5 6 ...l r l r l l l ...此时q = 4upper_bou... 阅读全文
posted @ 2015-08-25 15:13 Painting、时光 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4320/*公式:两个进制能相互转化,那么这两个进制的最小因数相同*//************************************************* Author :Powatr*... 阅读全文
posted @ 2015-08-25 15:01 Painting、时光 阅读(159) 评论(0) 推荐(0) 编辑