上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 45 下一页
摘要: One beautiful July morning a terrible thing happened in Mainframe: a mean virus Megabyte somehow got access to the memory of his not less mean sister 阅读全文
posted @ 2018-01-20 17:18 楼主好菜啊 阅读(175) 评论(0) 推荐(0) 编辑
摘要: You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number 阅读全文
posted @ 2018-01-20 09:13 楼主好菜啊 阅读(199) 评论(0) 推荐(1) 编辑
摘要: 推荐博客 :https://blog.csdn.net/wconvey/article/details/7827188 在第二遍看了树状数组后, 感觉有了更深的认识,既然是树状数组,从名字来看,就是像树的一个数组,没错,就是一个普通的数组,我们把他假定成为一棵树。 用 C1 表示 A1 的和 用 C 阅读全文
posted @ 2018-01-18 10:31 楼主好菜啊 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. A 阅读全文
posted @ 2018-01-18 09:54 楼主好菜啊 阅读(210) 评论(0) 推荐(0) 编辑
摘要: typedef struct node { int data; struct node *lchild, *rchild; }bitnode, *bitree; bool search(bitree T, int x, bitree f, bitree *p){ // 查找应该插入的位置 if (!T) { *p = f; return ... 阅读全文
posted @ 2018-01-17 10:32 楼主好菜啊 阅读(187) 评论(0) 推荐(0) 编辑
摘要: A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtree 阅读全文
posted @ 2018-01-17 10:27 楼主好菜啊 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is 阅读全文
posted @ 2018-01-15 11:04 楼主好菜啊 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1. The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessi 阅读全文
posted @ 2018-01-02 16:48 楼主好菜啊 阅读(278) 评论(0) 推荐(0) 编辑
摘要: A permutation of size n is an array of size n such that each integer from 1 to n occurs exactly once in this array. An inversion in a permutation p is 阅读全文
posted @ 2017-12-29 12:23 楼主好菜啊 阅读(485) 评论(0) 推荐(0) 编辑
摘要: STL 中的徐不着字符串匹配的库函数,用来寻找第一次目标字符串第一次在母串中出现的位置,并返回第一次出现位置的指针。 输出结果为 23456 阅读全文
posted @ 2017-12-26 12:22 楼主好菜啊 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 45 下一页