![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforce
文章平均质量分 71
Unlimited q
又菜又爱刷题
展开
-
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2) D. Explorer Space最短路 floyd变种
题目链接D. Explorer Spacetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are wandering in the explorer space of the 2050 Conference.The explorer space can be viewed as an undirected weighted grid原创 2021-04-24 21:10:16 · 198 阅读 · 0 评论 -
Codeforces Round #715 (Div. 2)题解(等待补题中)
这里写目录标题A. Average Height(签到)思路:代码B. TMT Document(贪心)思路代码C. The Sports Festival(区间DP)思路代码A. Average Height(签到)思路:让相邻2个数相加除2为整数最多,只需要让奇数在一堆,偶数在一堆;我做的时候排序了;其实可以分奇数偶数直接输出代码#include<bits/stdc++.h>using namespace std;typedef long long ll;#define原创 2021-04-17 02:38:00 · 216 阅读 · 0 评论 -
Codeforces Round #712 (Div. 2)
这里写目录标题题目链接A. Déjà Vu思路1代码1思路2代码2题目链接A. Déjà Vu思路1当字符串里面存在a以外的字母,肯定可以构造一个非回文字符串,在将要插入的位置的对称位置看看是不是a,不是a就插入,就可以构造一个非回文字符串.代码1#include<bits/stdc++.h>using namespace std;void solve(){ string s; cin>>s; for(int i=0;i<s.size(原创 2021-04-05 00:54:44 · 245 阅读 · 0 评论 -
Codeforces Round #710 (Div. 3)
Codeforces Round #710 Div. 3A. Strange Table代码B. Partial Replacement思路:代码A. Strange Table题目链接代码#include<bits/stdc++.h>using namespace std;const int N=1e5+10;int T;int a[N];#define int long long// typedef long long ll;signed main(){ i原创 2021-03-26 15:41:23 · 168 阅读 · 0 评论