![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
div2
s4ul
这个作者很懒,什么都没留下…
展开
-
Educational Codeforces Round 93 (Rated for Div. 2)补题
比赛链接 题意: 问一串数字中有多少子串的长度等于串中所有数字之和 思路: 不会做,我只能想两重循环,一个数一个数的处理,时间复杂度1010,超时。 其实可以不用一个数一个数的处理,只需要用一个map。 #include <bits/stdc++.h> using namespace std; int t, n; string s; map<int, int> mp; int main() { ios::sync_with_stdio(false);原创 2020-08-15 15:59:16 · 114 阅读 · 0 评论 -
Codeforces Round #659 (Div. 2)补题A,B1,B2,C,D
A 题意: 输出n+1个字符串,si和si+1的公共前缀长为ai 思路: 我们只要模拟过程即可,只要两个字母就可以输出任意多个满足题意的字符串。 我们只要改,第一个不相同的就好,后面的都输出一样的,但是一定要确保长度能够达到和下一个字符串相等的长度 思路好想,但是写的过程错了很多小细节,暴露代码能力 AC代码: #include<bits/stdc++.h> using namespace std; #define mod 1e9+7 #define N 100 #define inf 0x3f原创 2020-07-26 20:23:30 · 188 阅读 · 0 评论