- 博客(4)
- 收藏
- 关注
原创 Codeforces Round #683 题解
Codeforces Round #683 A~Ccontest传送门.A题面点这里.题目意思是给你一个n,表示1~n的序列,你可以进行m次操作,每次操作需选中一个其中的一个数,第 j 次操作可以让除了被选中的数的其他所有数加 j 。问你如何构造这样的m次操作使得最后所有数都相等,(操作次数不要求最小)假设对于 1 2 3 4 5;观察可知,我们从2开始往后选 选择 2 3 4 5,最后所有数就会相等。因此答案就是输出n-12 3 4 …n#include<bits/stdc++.
2020-11-16 10:15:59
398
原创 贪心 Codeforces Round #675 Div. 2 B. Nice Matrix
原题链接: 传送门B. Nice Matrix题面题解AC代码题面B. Nice Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA 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
193
转载 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 Segmentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstanda
2020-09-29 21:30:04
271
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人