上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: Description In Berland recently a new collection of toys went on sale. This collection consists of 109 types of toys, numbered with integers from 1to  阅读全文
posted @ 2016-06-06 19:13 邻家那小孩儿 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Description Maria participates in a bicycle race. The speedway takes place on the shores of Lake Lucerne, just repeating its contour. As you know, the 阅读全文
posted @ 2016-06-05 19:42 邻家那小孩儿 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 中序遍历:左->根->右; 前序遍历:根->左->右; 后序遍历:左->右->根; 层序遍历:一层一层的来。。。。 通常给出中序遍历,在给出前/后序遍历,就能求出后/前遍历; 一、已知前序、中序遍历,求后序遍历 例: 前序遍历: GDAFEMHZ 中序遍历: ADEFGHMZ 画树求法:第一步,根据 阅读全文
posted @ 2016-06-04 21:45 邻家那小孩儿 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜 阅读全文
posted @ 2016-06-03 20:23 邻家那小孩儿 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Description Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible fro 阅读全文
posted @ 2016-06-03 10:54 邻家那小孩儿 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , s 阅读全文
posted @ 2016-06-03 10:38 邻家那小孩儿 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Problem Description The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often b 阅读全文
posted @ 2016-05-31 16:43 邻家那小孩儿 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Problem Description Hiking in the mountains is seldom an easy task for most people, as it is extremely easy to get lost during the trip. Recently Gree 阅读全文
posted @ 2016-05-29 20:52 邻家那小孩儿 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Problem Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N 阅读全文
posted @ 2016-05-28 20:08 邻家那小孩儿 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Problem Description You're in space.You want to get home.There are asteroids.You don't want to hit them. Input Input to this problem will consist of a 阅读全文
posted @ 2016-05-28 17:05 邻家那小孩儿 阅读(226) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页