上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 35 下一页
摘要: Counting Haybales 时间限制: 50 Sec 内存限制: 256 MB提交: 52 解决: 18[提交][状态][讨论版] 题目描述 Farmer John is trying to hire contractors to help rearrange his farm, but s 阅读全文
posted @ 2016-08-08 11:46 贱人方 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 偷懒的桐桐 时间限制: 1 Sec 内存限制: 64 MB提交: 26 解决: 9[提交][状态][讨论版] 题目描述 桐桐的老师布置桐桐写一个小根堆,但是桐桐不会堆的操作,所以想了一个偷懒的办法:堆 是一棵完全二叉树,每个结点有一个权。小根堆的根的权最小,且根的两个子树也是一个堆。可以用一个数组a 阅读全文
posted @ 2016-08-06 13:32 贱人方 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 【搜索】魔板问题 时间限制: 1 Sec 内存限制: 64 MB提交: 5 解决: 3[提交][状态][讨论版] 题目描述 据说能使持有者成为世界之主的上古神器隐藏在魔板空间,魔板由8个同样大小的方块组成,每个方块颜色均不相同,按顺时针方向依次写下各方块的颜色代号,例如序列(1,2,3,4,5,6, 阅读全文
posted @ 2016-08-06 12:16 贱人方 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 包裹快递 时间限制: 1 Sec 内存限制: 64 MB提交: 83 解决: 15[提交][状态][讨论版] 题目描述 桐桐为了体验生活,顺便攒点零花钱,决定到快递公司做兼职邮递员。快 递公司要将n个包裹分别送到n个地方,并分配给邮递员桐桐一个事先设定好的路线,桐桐需要开车按照路线给的地点顺序相继送 阅读全文
posted @ 2016-08-06 10:22 贱人方 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 循环节 时间限制: 1 Sec 内存限制: 64 MB提交: 56 解决: 16[提交][状态][讨论版] 题目描述 第一节是英语课。今天,老师又教了桐桐很多单词。桐桐发现所有单词都有循环节(大写字母一律化成小写字母)。如a(循环长度为1,循环节为 a),luLul(循环长度为2,循环节为lu),O 阅读全文
posted @ 2016-08-06 10:17 贱人方 阅读(626) 评论(0) 推荐(0) 编辑
摘要: A - Nearest Common Ancestors Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu Submit Status A - Nearest Common Ancestors Submit Stat 阅读全文
posted @ 2016-08-05 11:09 贱人方 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hust.edu.cn/vjudge/problem/19244 #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <algorithm> #inclu 阅读全文
posted @ 2016-08-04 20:59 贱人方 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hust.edu.cn/vjudge/problem/19486 给你一个杠杆两端的物体的质量和力臂,如果质量为零,则下面是一个杠杆,判断是否所有杠杆平衡。 分析:递归。直接递归求解即可。 #include <iostream> #include <cstdio> # 阅读全文
posted @ 2016-08-04 20:34 贱人方 阅读(124) 评论(0) 推荐(0) 编辑
摘要: You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary 阅读全文
posted @ 2016-08-04 19:40 贱人方 阅读(285) 评论(0) 推荐(0) 编辑
摘要: The Unique MST Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 27141 Accepted: 9712 Description Given a connected undirected graph, tell if 阅读全文
posted @ 2016-08-04 12:20 贱人方 阅读(3154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 35 下一页