![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
Han Gang
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #659 (Div. 2)
比赛链接:https://codeforces.com/contest/1384A.Common Prefixes题意:给你n个数表示数组a,让你输出n+1个字符串,使第i+1个字符串和第i个字符串有a[i]位前缀相同。AC#include<bits/stdc++.h>#include <algorithm>#include <iostream>#include <map>#include <math.h>#include &l原创 2020-07-25 22:53:07 · 359 阅读 · 0 评论 -
Educational Codeforces Round 83-D. Count the Arrays
题目传送门:D. Count the Arraysinput3 4output6input3 5output10input42 1337output806066790input100000 200000output707899035题意:给你n,m;让你构造一个长度为n的数列,要下面满足几个条件1.保证数列中所有的数都在1~m中,而且有且只有一个数出现过两次,其余数最多只能出现一次。2.数列中有一个要有这样一个位置i,在i之前的要严原创 2020-05-24 20:24:27 · 155 阅读 · 2 评论