上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页
  2017年8月14日
摘要: 话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。 这时他已经不是那个只会做100以内加法的那个“小明”了,现在他甚至会任意长度的正小数的加法。 现在,给你两个正的小数A和B,你的任务是代表大明计算出A+B的值。 Input本题目包含多组测... 阅读全文
posted @ 2017-08-14 09:32 zitian246 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所示。 Input输入数据的第一行是一个整数C,表示测试实例的个数,然后是C 行数据,每... 阅读全文
posted @ 2017-08-14 09:29 zitian246 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 ... 阅读全文
posted @ 2017-08-14 08:54 zitian246 阅读(121) 评论(0) 推荐(0) 编辑
  2017年8月11日
摘要: Nadeko's birthday is approaching! As she decorated the room for the party, a long garland of Dianthus-shaped paper pieces was placed o... 阅读全文
posted @ 2017-08-11 16:27 zitian246 阅读(194) 评论(0) 推荐(0) 编辑
  2017年8月8日
摘要: Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capi... 阅读全文
posted @ 2017-08-08 21:49 zitian246 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 判断两序列是否为同一二叉搜索树序列Input开始一个数n,(1#includeint n,la,lb;char a[30],b[30],ans[30];int sa[1100],sb[1100];void build(int l,char *s1,int *s2){ ... 阅读全文
posted @ 2017-08-08 14:44 zitian246 阅读(404) 评论(0) 推荐(0) 编辑
摘要: A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may ... 阅读全文
posted @ 2017-08-08 14:14 zitian246 阅读(130) 评论(0) 推荐(0) 编辑
  2017年8月4日
摘要: 描述 有N堆石子排成一排,每堆石子有一定的数量。现要将N堆石子并成为一堆。合并的过程只能每次将相邻的两堆石子堆成一堆,每次合并花费的代价为这两堆石子的和,经过N-1次合并后成为一堆。求出总的代价最小值。输入有多组测试数据,输入到文件结束。每组测试数据第一行有一个... 阅读全文
posted @ 2017-08-04 15:36 zitian246 阅读(170) 评论(0) 推荐(0) 编辑
  2017年8月3日
摘要: Many modern text editors automatically check the spelling of the user's text. Some editors even suggest how to correct typos.In this p... 阅读全文
posted @ 2017-08-03 15:53 zitian246 阅读(177) 评论(0) 推荐(0) 编辑
摘要: The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather to... 阅读全文
posted @ 2017-08-03 15:50 zitian246 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页