自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

lieer

一条为自己加盐的咸鱼

  • 博客(7)
  • 收藏
  • 关注

原创 at-070D

并查集模板 并查集是将有关系的一系列元素组合成为一个集合并且区分出没有关联的集合元素,#include<iostream>using namespace std;const int N = 1e5+5;int fa[N],Rank[N],n;void init(){ for(int i=1;i<=n;i++) { fa[i]=i;//自己为自己的父节

2017-08-18 20:22:23 323

原创 codeforces 804B

B. Minimum number of stepstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe have a string of letters 'a' and 'b'. We want to p

2017-08-18 16:28:14 354

原创 图的储存

对于图的储存是做图论题的基础,图的储存主要有两种方式,一个是邻接表,一个是邻接矩阵。两种储存方式有时候可以通用,但有一些图论题却不能混用。  邻接矩阵实现方式很简单,直接就是创建一个二维数组G[N][N],对于点x,y,G[x][y]的值就是x->y这一条边的权值。#include#define INF 0x3f3f3f3fusing namespace std;int G[N][N

2017-08-18 14:59:35 399

原创 codeforces 808C

C. Tea Partytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp invited all his friends to the tea party to celebrate the

2017-08-17 19:33:14 345

原创 codeforces 810B

B. Summer sell-offtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSummer holidays! Someone is going on trips, someone is visiti

2017-08-17 16:27:16 364

原创 atcoder-abc-070D

Time limit : 2sec / Memory limit : 256MBScore : 400 pointsProblem StatementYou are given a tree with N vertices.Here, a tree is a kind of graph, and more specifically, a connected undirect

2017-08-15 17:58:54 485

原创 codeforces 837 C

C. Two Sealstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne very important person has a piece of paper in the for

2017-08-15 17:33:31 837

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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