上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the largest population.Input Sp... 阅读全文
posted @ 2015-12-06 11:53 白夜行zz 阅读(152) 评论(0) 推荐(0)
摘要: result moded by 1000000007 就是 cout #include #include using namespace std;int main(void) { string s; cin >> s; long long int p=0, pa=0, pat=0; for (int i = 0; i < s.length(); i++) { if (s[i] == 'P') ... 阅读全文
posted @ 2015-12-06 11:52 白夜行zz 阅读(187) 评论(0) 推荐(0)
摘要: Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sel... 阅读全文
posted @ 2015-12-06 11:51 白夜行zz 阅读(174) 评论(0) 推荐(0)
摘要: One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice, your job is to c... 阅读全文
posted @ 2015-12-06 11:50 白夜行zz 阅读(230) 评论(0) 推荐(0)
摘要: 时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to ... 阅读全文
posted @ 2015-12-06 11:49 白夜行zz 阅读(491) 评论(0) 推荐(0)
摘要: (merge不能更坑。。。。)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAccording to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. ... 阅读全文
posted @ 2015-12-06 11:47 白夜行zz 阅读(301) 评论(0) 推荐(0)
摘要: For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Each input file contains one test case,... 阅读全文
posted @ 2015-12-06 11:46 白夜行zz 阅读(310) 评论(0) 推荐(0)
摘要: 时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIndeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost whil... 阅读全文
posted @ 2015-12-06 11:45 白夜行zz 阅读(183) 评论(0) 推荐(0)
摘要: 自己想的比较好的一个算法,时间大大节省时间限制300 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CAO, PengGiven a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M ... 阅读全文
posted @ 2015-12-06 11:43 白夜行zz 阅读(148) 评论(0) 推荐(0)
摘要: 时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yuepush 的顺序就是二叉树的前序pop的顺序就是二叉树的中序遍历本质上还是考根据这两个顺序建立二叉树,并且进行后序遍历An inorder binary tree traversal can be implemented in a non-recursive way with a s... 阅读全文
posted @ 2015-12-06 11:43 白夜行zz 阅读(200) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 11 下一页