摘要: 题目就是根据题意进行四个操作 。。复制一下别人的翻译:The valid commands for the robot arm that manipulates blocks are:机械臂操作积木的有效指令列举如下:move a onto bwhere a and b are block numbers, puts block a onto block b after returning any blocks that are stacked on top of blocks a and b to their initial positions.a和b都是积木的编号,先将a和b上面所有的积木 阅读全文
posted @ 2013-11-21 23:27 doubleshik 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 给出一堆乌龟名字,乌龟能从本身位置爬到顶端。 要求求出从原本的顺序到目标顺序的最小操作。分别比较org和after 。 一样就都向上,否则org向上继续匹配。最终after上方剩下的就是org里要移动的题目:Problem D: ShellSort He made each turtle stand on another one's backAnd he piled them all up in a nine-turtle stack.And then Yertle climbed up. He sat down on the pile.What a wonderful v 阅读全文
posted @ 2013-11-21 11:12 doubleshik 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目就是给出一些点,求哪一个三角形不包含其他点且面积最大。题目中也给出了一个计算面积的公式。要注意的是判断double类型面积相等注意精度问题。写的时候忘记了给面积加绝对值题目:Problem B: Myacm TrianglesSource file:triangle.{c, cpp, java, pas}Input file:triangle.inOutput file:triangle.outThere has been considerable archeological work on the ancient Myacm culture. Many artifacts have be 阅读全文
posted @ 2013-11-21 09:16 doubleshik 阅读(232) 评论(0) 推荐(0) 编辑