题目大意:有n个人,已知每人有ki个糖纸,并且知道每张糖纸的颜色。其中,Bob希望能和同伴交换使得手上的糖纸数尽量多。他的同伴只会用手上的重复的交换手上没有的,并且他的同伴们之间不会产生交换。求出Bob能拥有的最大糖纸种数。题目分析:对于Bob拥有的糖纸,从源点s连一条弧,容量为Bob拥有的数量;对...
分类:
其他好文 时间:
2015-12-09 16:57:50
阅读次数:
128
Problem DescriptionAlice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They tak...
分类:
其他好文 时间:
2015-11-27 17:28:54
阅读次数:
188
切片#切片L = ['Michael', 'Sarah', 'Tracy', 'Bob', 'Jack']print(L[0:3])print(L[:3])print(L[1:3])print(L[:10:2])print(L[::5])print(L[:]) #复制一个listprint((0, ...
分类:
其他好文 时间:
2015-11-26 18:57:30
阅读次数:
182
1. python的变量名以字母开头,包含字母、数字、下划线。2.python是动态类型语言,即不需要预先声明变量的类型。变量的类型和值在赋值的时候被初始化。变量赋值通过等号来执行。代码:counter = 0miles = 1000.0name = 'Bob'counter = counter +...
分类:
编程语言 时间:
2015-11-24 14:20:50
阅读次数:
167
英文原文地址:http://www.youdzone.com/signature.html若下文有任何错误,请告知我,谢谢。79996286@qq.com主角介绍:Bob and Alice提起RSA加密算法,公钥和私钥,多数文章都要使用Bob和Alice这两位人物。他们的创造者名叫Rivest,是...
分类:
其他好文 时间:
2015-11-22 20:21:50
阅读次数:
239
前言"Architecture is About Intent, not Frameworks" -Robert C. Martin (Uncle Bob)Uncle Bob 的这句话套在 MVVM 上也是适用的, MVVM 也仅仅是架构模式(Architectural pattern),其有一套自...
分类:
移动开发 时间:
2015-11-22 16:03:26
阅读次数:
254
F - City Game Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1505Appoint description:Description Bob i...
分类:
其他好文 时间:
2015-11-21 22:27:02
阅读次数:
204
L=[‘Michael‘,‘Sarah‘,‘Tracy‘,‘Bob‘,‘Jack‘]>>>L[0:3][‘Michael‘,‘Sarah‘,‘Tracy‘]L[0:3]表示,从索引0开始取,直到索引3为止,但不包括索引3。即索引0,1,2,正好是3个元素。Python支持L[-1]取倒数第一个元素,那么它同样支持倒数切片>>>L[-1]‘Jack‘>&..
分类:
编程语言 时间:
2015-11-19 16:55:41
阅读次数:
158
// 1.变量(Variables) var myVariable; myVariable = 'Bob'; // 数据类型 string number boolean array object// 2.注释 /* Everything ...
分类:
Web程序 时间:
2015-11-12 18:02:50
阅读次数:
204
Box of BricksTime Limit:1000MSMemory Limit:10000KTotal Submissions:19552Accepted:7889DescriptionLittle Bob likes playing with his box of bricks. He pu...
分类:
其他好文 时间:
2015-11-05 20:37:06
阅读次数:
275