资源分配,每个时间点有m个机器可用,要将这资源分配给n个任务中的一些,要求每个任务在自己的时间范围中被分配了p[i]个资源,建图:建立源,与每个时间点连边,容量为m,每个任务向其对应的时间段中的每个时间点连边,容量1,每个任务向汇连边,容量为该任务需要的时间。收获: 本题中的有:任务,时间,机器三....
分类:
其他好文 时间:
2015-03-07 16:59:48
阅读次数:
128
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-03-07 16:58:09
阅读次数:
131
这是一个判断一个指定的Service是否存在的方法。它被用于监视一个Service是否由于已经运转,如果由于各种原因Service已经被停止了。这是在重新启动指定Service。它被用于一个Application中有多个Service。 public static boolean isServic....
分类:
其他好文 时间:
2015-03-07 17:00:05
阅读次数:
130
#include#include#includeusing namespace std;struct Student{ int ID; int score[6]; int perfect; int sum; int rank; bool tag;}S[10066];int p[6]; ...
分类:
其他好文 时间:
2015-03-07 16:59:05
阅读次数:
134
大白书P330 这题比较麻烦给出一个n个节点m条边的无向图,每条边上有一个正权。令c等于每对节点的最短路长度之和。例n=3时, c = d(1,1)+d(1,2)+d(1,3)+d(2,1)+d(2,2)+d(2,3)+d(3,1)+d(3,2)+d(3,3);要求删除一条边后使得新的c值c‘最大。...
分类:
其他好文 时间:
2015-03-07 17:00:23
阅读次数:
113
题目大意:求n个两两hamming距离大于等于d的序列,每个元素是一个b bit的数思路:仍然暴力大法好 1 /*{ 2 ID:a4298442 3 PROB:hamming 4 LANG:C++ 5 } 6 */ 7 #include 8 #include 9 #define maxn 50010...
分类:
其他好文 时间:
2015-03-07 16:59:23
阅读次数:
116
Populating Next Right Pointers in Each Node II问题:Populate each next pointer to point to its next right node. If there is no next right node, the next ...
分类:
其他好文 时间:
2015-03-07 16:58:55
阅读次数:
93
如有雷同,不胜荣幸,若转载,请注明让IE6 IE7 IE8 IE9 IE10 IE11支持Bootstrap的解决方法最近做一个Web网站,之前一直觉得bootstrap非常好,这次使用了bootstrap3,在chrome,firefox,safari,opera,360浏览器(极速模式)、搜狗浏...
分类:
其他好文 时间:
2015-03-07 16:58:34
阅读次数:
144
【题目翻译】:题目分析:因为任务是可以并行的执行,所以直觉上是花费时间长的任务优先去部署。但是这到题目还给你交待任务的时间,所以容易让人想多了。不管有没有交待任务的时间,对于任务x和y,只可能有两种情况。x在y之前结束,和x在y之后结束。这里讨论x在y之前完成。未交换x和y的位置时,完成时间为:B[...
分类:
其他好文 时间:
2015-03-07 16:59:02
阅读次数:
140
structNode{intvalue;Node*left;Node*right;Node(intval):value(val),left(NULL),right(NULL){}};#include#include#includeusingnamespacestd;voidpreOrder(Node...
分类:
其他好文 时间:
2015-03-07 16:58:40
阅读次数:
141
#include#include#includeusing namespace std;struct Student{ int GE,GI,sum,rank,ID; int prefer[6];}STU[40066];struct School{ int want; //各学校招...
分类:
其他好文 时间:
2015-03-07 16:57:51
阅读次数:
134
BAT脚本编写要点(1)_特殊字符分类: 其他 2011-03-20 00:58 5621人阅读 评论(0) 收藏 举报脚本cdatecmdtreesystem1. 点 与echo连用,作用是换行 示例1 [输出空行] echo. 2 > 定向符[输出...
分类:
其他好文 时间:
2015-03-07 16:56:58
阅读次数:
201
bat中的特殊字符,以及需要在bat中当做字符如何处理(2014-02-27 21:16:55)转载▼标签:bat特殊字符分类:developbat中的特殊字符,以及需要在bat中当做字符如何处理批处理、Bat中特殊符号的实际作用,Windows 批处理中特殊符号的作用:@ \\隐藏命令的回显。~ ...
分类:
其他好文 时间:
2015-03-07 16:56:08
阅读次数:
103
ADHelper 活动目录用户操作类 分类: sharepoint 学习札记 2012-07-02 15:59 659人阅读 评论(0) 收藏 举报 活动stringusernullloginusing System;using System.Collections.Generic;us...
分类:
其他好文 时间:
2015-03-07 16:57:13
阅读次数:
247
https://oj.leetcode.com/problems/permutations/Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following pe...
分类:
其他好文 时间:
2015-03-07 16:54:54
阅读次数:
134
1、Android的存储机制(这篇文章http://blog.csdn.net/fwwdn/article/details/7514831)Android为我们提供了4种数据存储方式,但由于存储的这些数据都是某个应用程序私有的,所以它又为我们提供了一种在不同应用程序之间共享数据的机制,即Conten...
分类:
其他好文 时间:
2015-03-07 16:54:12
阅读次数:
152
转载:http://blog.csdn.net/fwj380891124/article/details/8819926在.NET中,所有的服务器控件提交到服务器的时候,都会调用__doPostBack这个函数,所以灵活运用这个函数对于我们的帮助还是很大的. 比如,在我们写程序的时候经常会需要动态的...
分类:
其他好文 时间:
2015-03-07 16:54:08
阅读次数:
147