题意: 给定一个规模为n的名单,要将名单中的人归到m个组中,给出每个人可能的分组号,需要确定一种分配方案,使得最大规模的组最小。 思路: 二分图多重匹配 如果所到的组没满,就去那个组 如果满了,就从那个组里踢出一个 如果能踢出来,就把那个踢出来,把当前的放进去 如果所有能到的组都踢不出来,就不对了 ...
分类:
其他好文 时间:
2016-05-17 19:21:30
阅读次数:
163
Problem C: The Same Color Description Diao Yang has many balls with different colors. Today he wants to divide his balls into two groups. But he does ...
分类:
其他好文 时间:
2016-05-15 21:24:39
阅读次数:
249
Jamie's Contact Groups
Time Limit:7000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice POJ
2289
Description
Jamie is a very popular girl and has...
分类:
其他好文 时间:
2016-05-13 01:48:56
阅读次数:
203
原题:http://poj.org/problem?id=2289
#include
#include
#include
#include
#include
#include
#include
#define inf 1e9
using namespace std;
const int maxn = 2000;
const int maxm = 510000;
int n, m, num...
分类:
其他好文 时间:
2016-05-13 01:24:47
阅读次数:
124
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=3419
思路:注意减枝就行,不然会TLE
AC代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
const int in...
分类:
其他好文 时间:
2016-05-13 00:58:52
阅读次数:
140
1.国外库太慢,更换为国内镜像库在你的maven安装目录下找到conf目录下的setting.xml修改:<mirrors> <id>CN</id> <name>OSChina Central</name> <url>http://maven.oschina.net/content/groups/p ...
分类:
其他好文 时间:
2016-05-11 15:08:04
阅读次数:
114
1. inventory hosts file 中的server 变量会覆盖group变量. 在第二步中的debug中, hostvars包含了所有机器的facts, 可以在下面的steps中引用hostvars[groups.masters[0]].变量名. 这样就可以使用 Note 1 "pas ...
分类:
其他好文 时间:
2016-05-11 10:55:34
阅读次数:
2720
【本系列其他教程正在陆续翻译中,点击分类:TestNG进行查看。】
【翻译 by 明明如月 QQ 605283073】
原文:http://websystique.com/java/testing/testng-suites-example/
上一篇:TestNG
Groups 例子
本文将讲述TestNG Suite 测试,一个Suite(套件)在 TestNG...
分类:
编程语言 时间:
2016-05-10 02:50:18
阅读次数:
316
?Manifest权限声明 ?Permission Groups-权限组 ?权限的区分-安装时授权于运行时授权 ?撤销权限 ?检查、请求权限 ?在应用中如何合理的处理权限请求逻辑 在AndroidManifest.xml中配置权限。 <!-- 照相机权限 --> <uses-permission a ...
分类:
移动开发 时间:
2016-05-08 13:37:28
阅读次数:
225
今天准备些个poiTest 的Maven工程的,结果在配置pom中出现Failed to read artifact descriptor for org.apache.poi:poi-ooxml:pom.lastUpdated:3.10-FINAL这个问题。本人初学Maven搞了半天,居然是(http://192.168.0.101:8081/nexus/content/groups/publi...
分类:
Web程序 时间:
2016-05-07 10:48:35
阅读次数:
1380