自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 论memset的时间复杂度

memset的时间复杂度为On,但对于测试数据很多的情况还是慎用memset

2020-10-26 23:36:09 1679

原创 贪心 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关注的人

提示
确定要删除当前文章?
取消 删除