![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 75
CTGU20dzt
这个作者很懒,什么都没留下…
展开
-
F. Nezzar and Nice Beatmap
F. Nezzar and Nice Beatmaptime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputNezzar loves the game osu!.osu! is played on beatmaps, which can be seen as an array consisting of distinct points on a pl原创 2021-03-17 20:32:04 · 126 阅读 · 0 评论 -
E. Nezzar and Binary String
E. Nezzar and Binary Stringtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputNezzar has a binary string s of length n that he wants to share with his best friend, Nanako. Nanako will spend q days ins原创 2021-03-17 20:29:03 · 155 阅读 · 0 评论 -
C. Nezzar and Symmetric Array
C. Nezzar and Symmetric Arraytime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputLong time ago there was a symmetric array a1,a2,…,a2n consisting of 2n distinct integers. Array a1,a2,…,a2n is called sy原创 2021-03-17 20:22:57 · 139 阅读 · 0 评论 -
B. Nezzar and Lucky Number
B. Nezzar and Lucky Numbertime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputNezzar’s favorite digit among 1,…,9 is d. He calls a positive integer lucky if d occurs at least once in its decimal represe原创 2021-03-17 20:09:45 · 88 阅读 · 0 评论 -
A. Nezzar and Colorful Balls
A. Nezzar and Colorful Ballstime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputNezzar has n balls, numbered with integers 1,2,…,n. Numbers a1,a2,…,an are written on them, respectively. Numbers on those原创 2021-03-17 20:02:36 · 71 阅读 · 0 评论 -
2021-02-03
2021牛客寒假算法基础集训营1 -1A长度不超过nn,且包含子序列“us”的、只由小写字母构成的字符串有多少个? 答案对10^9+7取模。所谓子序列,指一个字符串删除部分字符(也可以不删)得到的字符串。例如,“unoacscc"包含子序列"us”,但"scscucu"则不包含子序列"us".f[i]表示长度为i的有us的串的数量• 1.之前已经有完整的us ,所以第i个位置随便添加• f[i] += f[i-1] * 26• 2.之前没有us,但是有一个或者多个u,当前位置必须加一个s •原创 2021-02-03 09:46:53 · 339 阅读 · 0 评论