热门 最新 精选 话题 上榜
题意就是:给你n个节点和m条边的无向图,定义一个图如果和谐的话假如L到R直接有边
原创 1月前
17阅读
Codeforces Round #600 (Div. 2) D Harmonious Graph(bfs或并查集)
图的相关概念和定义
原创 1月前
31阅读
一共n个糖果,每天最多吃m个。糖果第d天吃的花费是a[i] * d 问你吃k块糖果的最小花费
原创 1月前
33阅读
CodeForces 1253C Sweets Eating
B题居然是卡我时间最长的题卡了快一个小时,真的想复杂了,对于这种模拟题就是得
原创 1月前
18阅读
CodeForces1253B Silly Mistake
最近一直再打CF,没比赛就补div2,时间多补两场,时间少补一场,把div2补完,我发现每天来的题,两点睡的,六点半又起来去给...
8
原创 1月前
27阅读
给定一个数字n,构造一个长度为2n的括号序列,每个‘( ’都能在其右边找到唯一对应的‘
原创 1月前
42阅读
codeforces1152D Neko and Aki's Prank(DP)
每天还是打比赛补题,有的题是真的没思路就特别佩服那些人这些思路是怎么想到的,
原创 1月前
29阅读
2019年11月20日总结
题意: 现在有个n * m的格子,k只鸡。然后格子里如果输入的是R就代表有米,然后鸡要
原创 1月前
18阅读
CodeForces 1255D Feeding Chicken(构造)
Description:Given a prime number C(1≤C≤2×105)C(1≤C≤2×10^5)C(1≤C≤2
原创 1月前
20阅读
题意:,...
原创 1月前
22阅读
CodeForces 1293 D Aroma's Search
\quadThe only difference between problems C1C1C1 and C2C2C2 is that all values in inpu
原创 1月前
22阅读
这个周感冒好几天了,扛了两天受不了去拿药了,周末吃完药一点精神没
uu
原创 1月前
20阅读
2019年11月24日总结
给你一个 nnn 和一个 kkk,再给你一个由括号组成的字符串,告诉你括号的数量一定是
原创 1月前
18阅读
CodeForces 1227C  Messy
题意:
原创 1月前
34阅读
CodeForces 1293 C NEKO's Maze Game
到家这几天先是把之前数论没懂的地方又看了一遍,以前看过的知识点又
原创 1月前
19阅读
题意:一个长度为 nnn 的字符串,给每个字符染色,然后可以任意交换不同颜色的字符,然后问最少可以染几种颜色。
原创 1月前
20阅读
CodeForces 1296 E2 String Coloring (hard version)
二叉树的存储结构及实现
原创 1月前
18阅读
二叉树的实现
Description: \quadYou are planning to buy an apartment in a n-floor building. The floors are numbered
ide
原创 1月前
24阅读
Description:Guy-Manuel and Thomas are going to build a polygon sp
原创 1月前
26阅读
Description:Mathematicians love all sorts of odd properties of numbers. F
原创 1月前
20阅读
本来前几天是看的多项式卷积但是实在看不明白到底咋推出来的,然后今天开始看了莫比乌斯反演,感觉这个挺简单的,可能是还没有遇到难的问题,这两周事情挺多的,四级一点没看,来年一定好好复习,每天都是晚自习的时间去自习室复习半个小时,然后在实验室待到11点,回到宿舍收拾好都快十二
Description:ition i−aii−a_{i}i−ai​ (if 1≤i−ai)1≤i−a_{i})1≤i−ai​) or to the position i+aii+...
原创 1月前
19阅读
要了解指针,多多少少会出现一些比较复杂的类型,所以我先介绍一下如何完全理解一个复杂类型,要理解复杂类型其实很简单,一个类型里会出现很多运算符,
转载 1月前
25阅读
Description: Hooray! Polycarp turned n years old! The Technocup Team sin
原创 1月前
26阅读
Description:A k-multiple free set is a set of integers where there is no pair o
原创 1月前
21阅读
Description:
原创 1月前
34阅读
Description:A k-multiple free set is a set of integers where there is no
原创 1月前
25阅读
这几天好像干了很多事,但有好像什么都没干,每天都是挺忙的但是数论还是学不明
原创 1月前
33阅读
Description: \quadWe start with a string s consisting only of the digits 1,2,1, 2,1,2, or 333. The lencter of sss is...
git
原创 1月前
27阅读
题目描述有三个人,A,B,CA,B,CA,B,C ,其中 A{A}A 和 BBB 共享了一个神秘的数字 k...
原创 1月前
24阅读