![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计数
wtcl
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #633 A - Filling Diamonds(计数)
可以发现,一个图里有且只有一个垂直菱形。 无论你在什么地方放置垂直菱形,所有其他地方都是由水平钻石唯一放置的。 有n个地方可以放置垂直菱形,所以每个测试用例的答案是N。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace s...原创 2020-04-13 10:02:19 · 374 阅读 · 0 评论 -
Codeforces 1333C - Eugene and an array(前缀和 计数)
讲解:https://www.cnblogs.com/stelayuri/p/12664224.html原创 2020-04-09 09:53:58 · 144 阅读 · 0 评论 -
Codeforces Round #631 Editorial D. Dreamoon Likes Sequences(计数 异或)
讲解:https://www.cnblogs.com/AaronChang/p/12635428.html #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; #define ll long long const ...原创 2020-04-06 12:03:44 · 103 阅读 · 0 评论 -
Educational Codeforces Round 84 E. Count The Blocks(思维 计数)
题目:你写下了从0到10^n-1的所有整数,并用前导零填充它们,使它们的长度正好是n。例如,如果n=3,那么你写下了000,001,…,998,999。 整数x中的块是一个连续的等号段,不能向左或向右扩展。例如,在整数00027734000中,有三个长度为1的块、一个长度为2的块和两个长度为3的块。对于从1到n的所有整数,计算写下的整数中长度为i的块的数量。 由于这些整数可能太大,请将它们按模块9...原创 2020-03-27 10:47:51 · 192 阅读 · 0 评论