Dance Dance RevolutionTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 1291Mr. White, a fat man, now is crazy about...
分类:
其他好文 时间:
2015-08-30 21:15:04
阅读次数:
159
n participants of «crazy tea party» sit around the table. Each minute one pair of neighbors can change their places. Find the minimum time (in minutes...
分类:
其他好文 时间:
2015-08-27 22:27:36
阅读次数:
239
解题报告 之 HDU5325 Crazy Bobo 深搜,图论,HDU5325
Description
Bobo has a tree,whose vertices are conveniently labeled by 1,2,...,n.Each node has a weight . All the weights are distrinct.
A set with m nodes is a Bobo Set if:
- The subgraph of his tree induced by ...
分类:
其他好文 时间:
2015-08-27 15:25:28
阅读次数:
174
题意:有两个正负极n个节点和m个元件,每个元件告诉端点是接在哪个节点上的,并且每个元件有工作的最小电流限制,问使所有元件工作的满足条件的最小电流是多少。
思路:题目中已经有了源点S和汇点T,再添加附加源点SS和汇点TT,原图中的边的容量为INF(因为没有上限),若in[i]>0则SS向i连边容量为in[i],若in[i]<0则i向TT连边容量为-in[i],跑一次最大流,然后T向S连容量为INF的边,再跑一次最大流,判断SS的出边是否满流,若不满流则无解,否则有解输出边(T,S)的流量。
另外这类题看这里详...
分类:
其他好文 时间:
2015-08-26 17:56:30
阅读次数:
200
超简单的秒表:包含:开始、暂停(不清零)、清零 方法核心代码//// ViewController.m// MiaoBiao//// Created by Ibokan on 15/8/18.// Copyright (c) 2015年 Crazy凡. All rights reserved...
分类:
其他好文 时间:
2015-08-19 23:03:34
阅读次数:
194
Problem DescriptionGiven two matrices A and B of size n×n, find the product of them.bobo hates big integers. So you are only asked to find the result ...
分类:
其他好文 时间:
2015-08-17 23:25:56
阅读次数:
129
Elevator Stopping Plan
Description
ZSoft Corp. is asoftware company in GaoKe Hall. And the workers in the hall are veryhard-working. But the elevator in that hall always drives them crazy. Why?Becau...
分类:
编程语言 时间:
2015-08-16 10:45:33
阅读次数:
214
Crazy TankTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4562Accepted Submission(s): 902Problem D...
分类:
其他好文 时间:
2015-08-13 17:32:53
阅读次数:
122
上一篇文章http://blog.csdn.net/crazy__chen/article/details/47425779
和大家一起模仿EventBus的实现机制,和大家一起写出了一个简易的EventBus。通过这个项目,大家应该对EventBus的实现机理由大致的了解。
建议大家在看这篇文章之前,先读上一篇文章,有助于了解。
本篇文章希望通过对Github上EventBus的源码,向大...
分类:
其他好文 时间:
2015-08-12 13:21:19
阅读次数:
96
Description
bobo has a sequence a 1,a
2,…,a n. He is allowed to swap two
adjacent numbers for no more than k times.
Find the minimum number of inversions after his swaps.
Note: The number...
分类:
其他好文 时间:
2015-08-09 20:50:41
阅读次数:
174