
CodeForces
文章平均质量分 73
_leon1999
qaq
展开
-
Codeforce Bicycle Race
F - Bicycle Race CodeForces - 659D a/解题报告:题目大意给出图的坐标求有多少可能掉进水里的弯道。#include #include #include #include #include #define LL long long using namespace std;struct node{ int x,y;}b[1005原创 2018-01-31 21:44:51 · 205 阅读 · 0 评论 -
Serval and Toy Bricks (还原三视图)
B. Serval and Toy Brickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLuckily, Serval got onto the right bus, and he came to th...原创 2019-04-17 19:39:10 · 352 阅读 · 0 评论 -
Serval and Parenthesis Sequence
C. Serval and Parenthesis Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputServal soon said goodbye to Japari kindergarten...原创 2019-04-17 21:09:47 · 176 阅读 · 0 评论 -
Serval and Rooted Tree
D. Serval and Rooted Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNow Serval is a junior high school student in Japari Mi...原创 2019-04-18 16:10:13 · 363 阅读 · 0 评论 -
CodeForces - 812B Sagheer, the Hausmeister
E. Sagheer, the Hausmeistertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSome people leave the lights at their workplaces on wh...原创 2019-06-12 18:45:56 · 167 阅读 · 0 评论 -
CodeForces - 817D Imbalanced Array
CodeForces - 817DYou are given an arrayaconsisting ofnelements. Theimbalance valueof some subsegment of this array is the difference between the maximum and minimum element from this segment....原创 2019-06-12 18:56:30 · 368 阅读 · 0 评论 -
CodeForces - 828F Best Edge Weight
Best Edge WeightCodeForces - 828F题目大意:n个点和m条边,要求求每一条边的最大权值使得这条边出现在任意的生成树中。解题思路:先做最小生成树求得任意的一个最小生成树。然后对于在生成树上的边和不在生成树上的边分两种情况讨论。·1.对于不在生成树上的边u-v,如果它想要出现在任意一个生成树中,它需要满足生成树上小于u-v的路径边权的最大值。因...原创 2019-06-13 10:42:34 · 281 阅读 · 0 评论 -
训练赛20190606
A. Ugly Pairstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string, consisting of lowercase Latin letters.A pa...原创 2019-06-08 22:28:54 · 214 阅读 · 0 评论 -
Rikka with A Long Colour Palette 贪心
H. Rikka with A Long Colour Palettetime limit per test6.0 smemory limit per test1024 MBinputstandard inputoutputstandard outputBlue, the colour of the sky, the sea and your eyes.Gr...原创 2019-07-19 12:51:51 · 548 阅读 · 0 评论 -
CodeForces 827C DNA Evolution (树状数组)
A. DNA Evolutiontime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputEveryone knows that DNA strands consist of nucleotides. There ar...原创 2019-07-17 11:53:42 · 233 阅读 · 0 评论 -
CodeForces - 764C (树)
Each New Year Timofey and his friends cut down a tree ofnvertices and bring it home. After that they paint all thenits vertices, so that thei-th vertex gets colorci.Now it's time for Timofey b...原创 2019-03-13 12:58:03 · 368 阅读 · 0 评论 -
CodeForces - 490F 树上单调递增子序列
The "Road Accident" band is planning an unprecedented tour around Treeland. The RA fans are looking forward to the event and making bets on how many concerts their favorite group will have.Treeland ...原创 2019-02-12 15:17:09 · 291 阅读 · 0 评论 -
CodeForce 659C (贪心)
C. Tanya and Toystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn Berland recently a new collection of to原创 2018-01-31 22:24:50 · 223 阅读 · 0 评论 -
CodeForces - 659B
B. Qualifying Contesttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVery soon Berland will hold a School T原创 2018-02-18 11:52:35 · 340 阅读 · 0 评论 -
浙江理工大学校赛 C 仓鼠的约会大作战(模拟)
4388: 仓鼠的约会大作战Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 457 Solved: 63Description仓鼠有n个二次元老婆,第 i 个老婆的美丽度为 xi .现在仓鼠打算让她们打一架,决出心中的 No.1和No.2, 规则如下:每一轮从左到右处于奇数位的先和各自右边的打一架,然后从左到右处于偶数位的再和各自右边的打一架。打一架...原创 2018-06-19 18:53:12 · 507 阅读 · 0 评论 -
Educational Codeforces Round 51 (Rated for Div. 2)
C. Vasya and Multisetstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has a multiset ss consisting of nn integer numbers. V...原创 2018-09-21 11:08:36 · 168 阅读 · 0 评论 -
Codeforces Round 51 (Rated for Div. 2) (dp)
D. Bicolorings题目链接:http://codeforces.com/contest/1051/problem/Dtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a...原创 2018-09-21 16:47:04 · 143 阅读 · 0 评论 -
CodeForces - 463D (图的构造+记忆化搜索)
B - Gargari and Permutations CodeForces - 463D 题目大意:给出了k个序列求这k个序列的最长公共子序列解题思路:对于每个序列,如果i都在j的前边那么就添加一条从i到j的边,最后转化为求DAG的最长路。搜索的时候记忆化一下就好了。#include<iostream>#include<cstdio>#in...原创 2019-01-31 18:31:13 · 326 阅读 · 0 评论 -
CodeForces - 614D (二分)
C - Skills CodeForces - 614D Lesha plays the recently published new version of the legendary game hacknet. In this version character skill mechanism was introduced. Now, each player character has ...原创 2019-01-31 18:59:18 · 295 阅读 · 0 评论 -
CodeForces - 615C (贪心)
F - Running Track CodeForces - 615C A boy named Ayrat lives on planet AMI-1511. Each inhabitant of this planet has a talent. Specifically, Ayrat loves running, moreover, just running is not enough...原创 2019-01-31 19:08:02 · 256 阅读 · 0 评论 -
CodeForces - 496C (dfs)
You are given an n × m rectangular table consisting of lower case English letters. In one operation you can completely remove one column from the table. The remaining parts are combined forming a new ...原创 2019-02-11 20:24:06 · 316 阅读 · 0 评论 -
Destroying Array (线段树)
Destroying Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array consisting ofnnon-negative integersa1,...原创 2019-08-02 14:32:29 · 238 阅读 · 0 评论