- 博客(4)
- 收藏
- 关注
原创 Codeforces Round #683 题解
Codeforces Round #683 A~C contest传送门. A 题面点这里. 题目意思是给你一个n,表示1~n的序列,你可以进行m次操作,每次操作需选中一个其中的一个数,第 j 次操作可以让除了被选中的数的其他所有数加 j 。问你如何构造这样的m次操作使得最后所有数都相等,(操作次数不要求最小) 假设对于 1 2 3 4 5; 观察可知,我们从2开始往后选 选择 2 3 4 5,最后所有数就会相等。 因此答案就是输出 n-1 2 3 4 …n #include<bits/stdc++.
2020-11-16 10:15:59 410
原创 贪心 Codeforces Round #675 Div. 2 B. Nice Matrix
原题链接: 传送门 B. Nice Matrix题面题解AC代码 题面 B. Nice Matrix time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A matrix of size n×m is called nice, if all rows and columns of the matrix are palindromes. A sequen
2020-10-06 11:50:35 218
转载 Codeforces Round #674 (Div. 3) D
声明:本文学习自其他博客,原文链接 https://blog.csdn.net/qq_45585519/article/details/108861503. D 题目链接: https://codeforces.ml/contest/1426/problem/D. 题目描述: D. Non-zero Segments time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstanda
2020-09-29 21:30:04 294
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人