上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: L3-016 二叉搜索树的结构 (30 分) 二叉搜索树或者是一棵空树,或者是具有下列性质的二叉树: 若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值;若它的右子树不空,则右子树上所有结点的值均大于它的根结点的值;它的左、右子树也分别为二叉搜索树。(摘自百度百科) 给定一系列互不相等的整 阅读全文
posted @ 2019-03-26 12:51 Acerkoo 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://atcoder.jp/contests/agc030/tasks/agc030_b 题意: 在一个有 L 个单位长度的圆上有 n 个点, 小明位于 0 位置的人要按照步骤把 n 个点走完。 圆的单位下标为[0, L-1],每个点有一个位置x[i] 。 步骤: 1、如果所有的 阅读全文
posted @ 2019-03-10 19:31 Acerkoo 阅读(136) 评论(0) 推荐(0) 编辑
摘要: There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the i 阅读全文
posted @ 2018-10-24 19:47 Acerkoo 阅读(158) 评论(0) 推荐(1) 编辑
摘要: 问题 H: 【哈希和哈希表】Antisymmetry 题目描述 对于一个0/1字符串,如果将这个字符串0和1取反后,再将整个串反过来和原串一样,就称作「反对称」字符串。比如00001111和010101就是反对称的,而1001就不是。现在给出一个长度为n的0/1字符串,求它有多少个子串是反对称的,注 阅读全文
posted @ 2018-10-10 21:33 Acerkoo 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Saving Tang Monk II Saving Tang Monk II 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 《Journey to the West》(also 《Monkey》) is one of the Four Great Classical 阅读全文
posted @ 2018-09-22 23:37 Acerkoo 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 贵有恒,何必三更起五更眠;最无益,莫过一日曝十日寒。 8010: Mountaineers 题目描述 The Chilean Andes have become increasingly popular as a destination for backpacking and hiking. Man 阅读全文
posted @ 2018-09-12 23:29 Acerkoo 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 131072K After the long vacation, the maze designer master has to do his job. A tour company gives him a map which is a rectangle. The map consists of  阅读全文
posted @ 2018-09-12 23:26 Acerkoo 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 262144K Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, he calls Kimura K 阅读全文
posted @ 2018-09-12 23:25 Acerkoo 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Ryuji is not a good student, and he doesn't want to study. But there are n books he should learn, each book has its knowledge a[i]a[i]. Unfortunately, 阅读全文
posted @ 2018-09-12 23:24 Acerkoo 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Morgana is learning computer vision, and he likes cats, too. One day he wants to find the cat movement from a cat video. To do this, he extracts cat f 阅读全文
posted @ 2018-09-12 23:23 Acerkoo 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页