自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

qiuxueming_csdn

一个喜欢ACM,但一直很菜的爱好者

  • 博客(93)
  • 资源 (1)
  • 收藏
  • 关注

原创 centos 7下安装google浏览器

1. 先下载google浏览器的 rpm 包 https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linux2. 使用命令 rpm -ivh 你下载的rpm包即可3.若出现错误是:libappindicator3.so.1()(64bit) 被需要使用  yum install libappindicator...

2018-08-16 16:54:22 412 1

原创 Python爬虫抓取(一)

对于python环境的不做介绍,网上有很多的教程,可以供大家参考,这里主要写一下,我自己最近学习遇到的一些流程和问题:打开cmd: 1. 新建虚拟环境virtualenv+环境名称,主要是我们开发一个项目,不可能在源目录下进行开发,新建虚拟目录可以不污染源环境,可以切换到你需要新建的目录下再建,默认在python的安装目录下                  2.进入虚拟环境 cd+环境名称   ...

2018-03-19 17:56:02 263

原创 排序(快排,归并,堆排)

实现一些排序的算法当做模板吧!#include #include #include #include #include #include #include #include using namespace std;const int maxn = 105;class Sort {public: vectorv; Sort(vectorv2) {

2017-08-09 19:39:51 314

原创 vim/vi命令全解

vi/vim常用命令介绍:使用ESC命令可以从编辑模式切换到插入模式,插入模式:1.      在光标前面插入文本用i2.      在本行前插入文本用I3.      在光标后插入文本用a4.      在行末插入文本用A5.      在光标下插入新的一行用o6.      在光标上插入新的一行O命令行模式进入编辑模式使用“:”,回车命令行模式定位命令:

2017-07-23 19:01:48 317

原创 大数加减乘除取余

实现大数的加减乘除和取余#include #include #include #include #include #include #include #include #include #include using namespace std;class Biginter {public: string delezero(string a); stri

2017-07-23 16:48:14 319

原创 2017年计蒜客比赛复赛B D两题

B题目:https://nanti.jisuanke.com/t/15967  分析:让你判断最后画在该点上的最后的线段标号,采用直线的上点的更新,(斜率存在和斜率不存在)记录每个点的最后的画上去线段的编号AC代码:#include #include #include #include #include #include #include #include #inclu

2017-06-11 13:37:28 337

原创 hdu 2087

剪花布条Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 20118    Accepted Submission(s): 12579Problem Description一块花布条,里面有些图案,另有一块直接

2017-05-30 23:19:33 225

原创 codeforces 810C

C. Do you want a date?time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLeha decided to move to a quiet town

2017-05-26 18:37:59 420

原创 2017计蒜客比赛第二场A题B题

A题 https://nanti.jisuanke.com/t/15503 思路:模拟打麻将,抓拍顺抓倒着数丢色子AC代码#include #include #include #include #include #include #include #include using namespace std;const int max_n = 100005;in

2017-05-21 21:32:49 413

原创 hdu 1296 迷宫城堡

为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(NInput输入包含多组数据,输入的第一行有两个数:N和M,接下来的M行每行有两个数a和b,表示了一条通道可以从A房间来到B房间。文件最后以两个0结束。 Output对于输入的每组数据,如果任意两个房间都是相互连接的,输出"Yes",否则输出"No"。 Sample Input3 31 22 3

2017-05-03 11:13:27 455

原创 hihocoder 1378 : 网络流二·最大流最小割定理

描述小Hi:在上一周的Hiho一下中我们初步讲解了网络流的概念以及常规解法,小Ho你还记得内容么?小Ho:我记得!网络流就是给定了一张图G=(V,E),以及源点s和汇点t。每一条边e(u,v)具有容量c(u,v)。网络流的最大流问题求解的就是从s到t最多能有多少流量。小Hi:那这个问题解决办法呢?小Ho:解决网络流的基本思路就是寻找增广路,不断更新残留网络。直到找不到新的增广路,此

2017-04-30 22:04:43 346

原创 hihocoder 1122 : 二分图二•二分图最大匹配之匈牙利算法

描述上一回我们已经将所有有问题的相亲情况表剔除了,那么接下来要做的就是安排相亲了。因为过年时间并不是很长,所以姑姑希望能够尽可能在一天安排比较多的相亲。由于一个人同一天只能和一个人相亲,所以要从当前的相亲情况表里选择尽可能多的组合,且每个人不会出现两次。不知道有没有什么好办法,对于当前给定的相亲情况表,能够算出最多能同时安排多少组相亲呢?同样的,我们先将给定的情况表转换成图G=(V,E)。

2017-04-29 16:59:26 251

原创 hihocoder 1121 : 二分图一•二分图判定

描述大家好,我是小Hi和小Ho的小伙伴Nettle,从这个星期开始由我来完成我们的Weekly。新年回家,又到了一年一度大龄剩男剩女的相亲时间。Nettle去姑姑家玩的时候看到了一张姑姑写的相亲情况表,上面都是姑姑介绍相亲的剩男剩女们。每行有2个名字,表示这两个人有一场相亲。由于姑姑年龄比较大了记性不是太好,加上相亲的人很多,所以姑姑一时也想不起来其中有些人的性别。因此她拜托我检查一下相亲

2017-04-29 16:55:57 349

原创 codeforces 803D Magazine Ad

D. Magazine Adtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe main city magazine offers its readers an

2017-04-29 16:13:15 474

原创 hdu 1556 Color the ball

Problem DescriptionN个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a  Input每个测试实例第一行为一个整数N,(N 当N = 0,输入结束。 Output每个测试实例输出一行,包括N个整数,第I个数代表第I个气球总共被涂色的次数。 Sample Inpu

2017-04-28 15:22:27 186

原创 codeforces 789B Masha and geometric depression

. Masha and geometric depressiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMasha really loves algebra.

2017-03-30 12:52:01 505

原创 codeforces 789C Functions again

C. Functions againtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSomething happened in Uzhlyandia again...

2017-03-30 12:38:45 484

原创 codefroces 791C Bear and Different Names

C. Bear and Different Namestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the army, it isn't easy to fo

2017-03-19 13:09:01 575

原创 codeforces 791B Bear and Friendship Condition

B. Bear and Friendship Conditiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBear Limak examines a social

2017-03-19 12:57:43 850

原创 codeforces 782c Andryusha and Colored Balloons

C. Andryusha and Colored Balloonstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndryusha goes through a

2017-03-06 14:54:56 262

原创 codeforces 782B The Meeting Place Cannot Be Changed

. The Meeting Place Cannot Be Changedtime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe main road in Byte

2017-03-06 14:10:18 676 2

原创 hdu4403A very hard Aoshu problem

Problem DescriptionAoshu is very popular among primary school students. It is mathematics, but much harder than ordinary mathematics for primary school students. Teacher Liu is an Aoshu teacher. H

2017-02-22 11:19:55 344

原创 codefroces 746D Green and Black Tea

D. Green and Black Teatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInnokentiy likes tea very much and to

2016-12-20 19:02:11 332

原创 codeforces 749C Voting

C. Votingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n employees in Alternative Cake Manufacturing (ACM

2016-12-20 12:42:00 524

原创 codeforces 747C Servers

C. Serverstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n servers in a laboratory, each of the

2016-12-19 16:31:17 616

原创 2016 EC-FINAL 一个属于菜鸟acmer的EC-FINAL

20天前,自从告知自己有机会参加EC-FINAL,每个人知道自己没希望,但是知道如果不练着20天,那结果一定不会好,所以我们开始了20天的集训,请学长拉了三期的题目,学长和我们一起做,收获颇多啊!在12月8日拉了一次模拟,这次模拟也是平台有BUG,出现好多的大牛来凑热闹,反而让我们多了竞争对手,哈哈!  Day1 早上七点时候一起在阿姨那的离校,让后坐着高铁到达上海,然后3号线转7号线到达

2016-12-12 15:49:51 4584 4

原创 Counting Cliques

Problem DescriptionA clique is a complete graph, in which there is an edge between every pair of the vertices. Given a graph with N vertices and M edges, your task is to count the number of clique

2016-12-05 20:11:37 1020

原创 Doing Homework again

Doing Homework againTime Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12670    Accepted Submission(s): 7416Problem DescriptionIgna

2016-11-30 20:52:33 231

原创 Roadblocks

DescriptionBessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home too quickly, because she likes the scenery alo

2016-11-27 15:41:58 312

原创 KK's Reconstruction

DescriptionOur lovely KK has a difficult Social problem. A big earthquake happened in his area.  cities have been implicated. All the roads between them are destroyed. Now KK was

2016-11-27 11:26:22 548

原创 USACO Prime Cryptarithm

Prime CryptarithmThe following cryptarithm is a multiplication problem that can besolved by substituting digits from a specified set of N digits into thepositions marked with *. If the set of prim

2016-11-18 20:23:58 295

原创 codeforces 731C 并查集

C. Sockstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputArseniy is already grown-up and independent. His m

2016-10-23 21:11:09 606

原创 codeforces 732D 模拟暴力

D. Examstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasiliy has an exam period which will continue for

2016-10-18 23:36:49 480

原创 codeforces 723D Lakes in Berland

D. Lakes in Berlandtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe map of Berland is a rectangle of th

2016-10-05 14:27:11 317

原创 codefroces 723c Polycarp at the Radio

C. Polycarp at the Radiotime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp is a music editor at the

2016-10-03 23:48:12 292

原创 PAT 1115 Counting Nodes in a BST (30)

A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than or equal to the node's ke

2016-09-04 16:19:18 662

原创 codeforces 688c 二分图判断

Recently, Pari and Arya did some research about NP-Hard problems and they found theminimum vertex cover problem very interesting.Suppose the graph G is given. Subset A of its vertices is called

2016-07-01 14:51:51 962

原创 PAT 1053 Path of Equal Weight

1053. Path of Equal Weight (30)时间限制 10 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueGiven a non-empty tree with root R, and with weigh

2016-06-17 10:58:01 394

原创 codeforces 656b Scrambled

Btoh yuo adn yuor roomatme lhoate wianshg disehs, btu stlil sdmoeboy msut peorrfm tihs cohre dialy. Oen dya yuo decdie to idourtcne smoe syestm. Yuor rmmotaoe sstgegus teh fooniwllg dael. Yuo ar

2016-06-13 22:03:39 398

原创 zoj 2476 Total Amount

Given a list of monetary amounts in a standard format, please calculate the total amount.We define the format as follows:1. The amount starts with '$'.2. The amount could have a leading

2016-06-05 22:00:57 350

电脑所有.exe无法打开解决办法

看见室友的电脑所有的.exe都无法打开,大家都帮忙去网上找了好多软件,好多命令但是都不行,最后找到了这个安装文件直接搞定了

2016-06-05

空空如也

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

TA关注的人

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