上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 68 下一页
摘要: Girls and Boys Problem Description the second year of the university somebody started a study on the romantic relations between the students. The rela 阅读全文
posted @ 2016-12-19 17:44 勿忘初心0924 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 二分匹配总结 首先讲一下什么是二分图,在一个图中,以边为条件,能将两个端点划分为两个集合的图叫做二分图,如下图: 左图为二分图,右图为简化后的二分图。 接着就是二分图的匹配问题,二分图的匹配就是找一个边的集合,每条边的的顶点的度数为1。 如上图所示,匹配到四条边。 二分图的完美匹配,就是所有的顶点都 阅读全文
posted @ 2016-12-19 16:27 勿忘初心0924 阅读(521) 评论(15) 推荐(0) 编辑
摘要: C. Tram time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The tram in Berland goes along a 阅读全文
posted @ 2016-12-19 13:40 勿忘初心0924 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Strategic Game Problem Description Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enoug 阅读全文
posted @ 2016-12-17 14:00 勿忘初心0924 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: Code Lock Problem Description A lock you use has a code system to be opened instead of a key. The lock contains a sequence of wheels. Each wheel has t 阅读全文
posted @ 2016-12-16 22:36 勿忘初心0924 阅读(662) 评论(0) 推荐(0) 编辑
摘要: Einbahnstrasse Problem Description Einbahnstra e (German for a one-way street) is a street on which vehicles should only move in one direction. One re 阅读全文
posted @ 2016-12-16 20:32 勿忘初心0924 阅读(369) 评论(0) 推荐(0) 编辑
摘要: A Walk Through the Forest Problem Description Jimmy experiences a lot of stress at work these days, especially since his accident made working difficu 阅读全文
posted @ 2016-12-16 13:59 勿忘初心0924 阅读(592) 评论(0) 推荐(0) 编辑
摘要: D. Chloe and pleasant prizes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Chloe an 阅读全文
posted @ 2016-12-16 13:46 勿忘初心0924 阅读(243) 评论(0) 推荐(0) 编辑
摘要: find the safest road Problem Description XX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s( 阅读全文
posted @ 2016-12-14 13:11 勿忘初心0924 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Here We Go(relians) Again Problem Description The Gorelians are a warlike race that travel the universe conquering new worlds as a form of recreation. 阅读全文
posted @ 2016-12-14 11:23 勿忘初心0924 阅读(332) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 68 下一页