摘要: abc过的挺顺利的到D就卡了,又wa又T A.Registration 题目大意 题目意思大概就是给你字符串S和T,确保T的长度比S多1,求S是否是T的前缀 思路 暴力模拟 代码 阅读全文
posted @ 2020-05-10 23:26 ChenShou 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 还想着Div 4 能不能ak一下,看来还是菜了。。。 A. Sum of Round Numbers 题目大意 题目意思大概就是给你一个数,把它分解成各个 $n \times 10^x$ 相加。 思路 对10求余,分别乘以$10^x \; x \geq 0$,计数共有几个就行了。 代码 阅读全文
posted @ 2020-05-10 11:20 ChenShou 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 不知道是人数的原因还是什么,这个比赛的体验超级棒 A.A+B (Trial Problem) 这就是基础的A+B,没啥好水的 阅读全文
posted @ 2020-05-07 23:12 ChenShou 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Mike收了10W $ , 结果把CF负优化了..... A . Puzzle Pieces 签到签到,一眼看出一行/一列/2 2才可能 DEF等等会补的,今天心态崩了 D.Monopole Magnets 比较经典的DFS, 稍微理顺一点磁铁放置的规则(思维混乱,写的150+行像一坨屎就不放代码了 阅读全文
posted @ 2020-05-07 01:16 ChenShou 阅读(347) 评论(0) 推荐(1) 编辑
摘要: "E. Compress Words" Problem Amugae has a sentence consisting of $n$ words. He want to compress this sentence into one word. Amugae doesn't like repeti 阅读全文
posted @ 2019-08-15 09:44 ChenShou 阅读(404) 评论(0) 推荐(0) 编辑
摘要: D. "White Lines" Problem Gildong has bought a famous painting software cfpaint. The working screen of cfpaint is square shaped consisting of $n$ rows 阅读全文
posted @ 2019-08-15 09:43 ChenShou 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: "C. Round Corridor" Problem Amugae is in a very large round corridor. The corridor consists of two areas. The inner area is equally divided by $n$ sec 阅读全文
posted @ 2019-08-15 09:40 ChenShou 阅读(310) 评论(0) 推荐(0) 编辑
摘要: "B. Block Adventure" Problem Gildong is playing a video game called Block Adventure. In Block Adventure, there are n columns of blocks in a row, and t 阅读全文
posted @ 2019-08-15 09:39 ChenShou 阅读(361) 评论(0) 推荐(0) 编辑
摘要: "A. Hotelier" Problem Amugae has a hotel consisting of $10$ rooms. The rooms are numbered from $0$ to $9$ from left to right. The hotel has two entran 阅读全文
posted @ 2019-08-15 09:38 ChenShou 阅读(513) 评论(0) 推荐(0) 编辑
摘要: title: 线段树相关 date: 2019 07 30 15:23:00 tags: [undone] mathjax: true toc: true 线段树是一种神奇的数据结构,能将区间数据多次修改与多次求和的复杂度降低,而且它还有升级版 <! more 线段树 (I) 产生背景 假设我们有$ 阅读全文
posted @ 2019-08-04 16:53 ChenShou 阅读(428) 评论(0) 推荐(0) 编辑