![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
文章平均质量分 80
CDQZOIERS
我是成都YJQ,看我1岁就AK
展开
-
CodeForces Gym Trainings Season 3 Episode 5 A题
原题在此大意就是有k组数字,每次在各组都选一个,求加在一起得到的和的前k大可以借用k=2时的做法做#include#include#include#include#includeusing namespace std;struct data{ int sum,p1; data(){} data(int sum,int p1):sum(sum),p1(p1){}原创 2016-10-06 18:52:04 · 460 阅读 · 0 评论 -
CF 375(div 2) F题
yjq_naive原创 2016-10-05 12:00:33 · 464 阅读 · 0 评论 -
Codeforces 723E.One-Way Reform
There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecting each pair of cities, and there is no road which connects the原创 2016-10-03 23:02:41 · 1126 阅读 · 0 评论 -
Codeforces模拟赛,题解及体会
从某种角度来说,在一个稳定举办赛事的OJ上写题的效率是比自己找题更高的。这一类的OJ包括且不限于CodeForces,Atcoder,Topcoder,Codechef,等等。此处放置部分模拟赛题解,不是给神看的,给人看吧。Contest #402 Div.1A. String Game:Little Nastya has a hobby, she likes to remove some lett原创 2017-10-18 17:56:38 · 1076 阅读 · 0 评论 -
Codeforces Round #292 D.Drazil and Morning Exercise
题意:有一棵带边权的树,共有nn个节点。有一些蚯蚓需要安置在此树上,每个节点只能安放11只蚯蚓,且所有蚯蚓在树上所占据的节点必须组成一个联通块。在确定位置之后,蚯蚓会同时开始朝离自己最远的节点前进,所有蚯蚓速度均为11。 给出qq次询问,每次输入一个数ll,要求输出可能安放的最多蚯蚓数,使得最先抵达终点的蚯蚓与最后的蚯蚓抵达时间之差不超过ll。数据范围:2 ≤ n ≤ 105,边权 ≤ 106,q原创 2017-10-21 20:36:20 · 467 阅读 · 0 评论