摘要: After having drifted about in a small boat for a couple of days, Akira Crusoe Maeda was finally cast ashore on a foggy island. Though he was exhausted 阅读全文
posted @ 2019-03-19 22:08 kongbb 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 用ObjectAnimator 实现菜单的弹出 首先是菜单的图片资源和布局 布局中使用FrameLaout 将菜单唤出对应的imageView放在布局的最后面来隐藏菜单详细内容。 阅读全文
posted @ 2019-03-15 16:55 kongbb 阅读(687) 评论(0) 推荐(0) 编辑
摘要: 学习了一下动画效果的使用,做一下笔记 通过with,after,before来定义多个动画之前的先后顺序 阅读全文
posted @ 2019-03-15 16:03 kongbb 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 看一下中文版的题目就好,英文题目太晦涩了。 有两种方法可以解题 一种是贪心+优先队列 另一种是贪心+并查集 优先队列 需要说的都在代码注释里 #include<cstdio> #include<queue> #include<algorithm> using namespace std; struc 阅读全文
posted @ 2019-03-09 23:00 kongbb 阅读(148) 评论(0) 推荐(0) 编辑
摘要: TT and FF are ... friends. Uh... very very good friends -________-b FF is a bad boy, he is always wooing TT to play the following game with him. This 阅读全文
posted @ 2019-03-09 17:27 kongbb 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Bessie noted that although humans have many universities they can attend, cows have none. To remedy this problem, she and her fellow cows formed a new 阅读全文
posted @ 2019-03-09 11:25 kongbb 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数 阅读全文
posted @ 2019-03-05 18:56 kongbb 阅读(428) 评论(0) 推荐(0) 编辑
摘要: Bessie was poking around the ant hill one day watching the ants march to and fro while gathering food. She realized that many of the ants were sibling 阅读全文
posted @ 2019-03-01 22:57 kongbb 阅读(190) 评论(0) 推荐(0) 编辑
摘要: "Fat and docile, big and dumb, they look so stupid, they aren't much fun..." - Cows with Guns by Dana Lyons The cows want to prove to the public that 阅读全文
posted @ 2019-02-28 20:26 kongbb 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 大意 n件物品,第i件hi高,有ci件,最高的一件不能超过ai的高度。问最高能堆多高输入第一行,一个n 接下来每一行,为hi,ai,ci输出最高堆多高样例 输入 3 7 40 3 5 23 8 2 52 6 样例输出 48 (从下到上:3个2号,3个1号,6个3号) 多重背包 这是bool 数组记录 阅读全文
posted @ 2019-02-27 22:17 kongbb 阅读(141) 评论(0) 推荐(0) 编辑