原题:http://poj.org/problem?id=1087
题意:n个插座,m个电器及其对应的插座,k种转化器,转换器(u,v)表示可以把原本需要u插座的电器转接到v插座上,问最少有多少设备没有插座用,每种转换器数量不限;;
#include
#include
#include
#include
#include
#include
#include
#define in...
分类:
其他好文 时间:
2016-05-12 19:56:32
阅读次数:
169
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma warning(disable:4996)
using std::cin;
using std::cout;
using std::endl;
using std::s...
分类:
其他好文 时间:
2016-05-12 17:18:25
阅读次数:
120
题意:输入n,有n个插座,下面n行是每个插座的类型(最后24个字母来表示一个插座,没有空格放心用scanf,但是有可能插座会相同,但是这个没有什么影响)
输入m,有m个电器,下面m行每行两个单词分别是电器的名字和插头类型(同样24个字母单词内没空格,两个单词空格隔开)
输入k,有k个转换器,下面k行每行两个单词,分别表示转换器的入口类型和插头类型
...
分类:
其他好文 时间:
2016-05-12 15:05:13
阅读次数:
182
1. 取消启动项。这个设置立竿见影。Window->Preferences->General->Startup and Shutdown, Plug-ins activated on startup里面的全部取消。 2. 取消语法验证。 Window->Preferences->MyEclipse- ...
分类:
系统相关 时间:
2016-05-08 11:58:26
阅读次数:
226
陈沙克在他的经典文章里分析了多个安装部署工具,用于openstack部署。
当然时代变了,所以很多这些工具都改头换面了。
目前看,
1 Mirantis Fuel仍然是最好的商业用选择,虽然还有瑕疵。
fuel在7和7之后已经提供开源的plugin插件,例如contrail的插件。并将fuel plugin方案放入openstack发展会中。
fuel在6的时候已经在提供商业化的plug...
分类:
其他好文 时间:
2016-05-07 11:10:11
阅读次数:
475
去tomcat官网http://tomcat.apache.org/,左侧栏Apache Tomcat下的Maven Plugin,点进去选择最新版本Version 2.2
通过介绍可知,使用tomcat的maven插件有两种配置方式:
第一种:在pom.xml文件的中加入如下配置:
org.apache.tomcat.maven
tomcat6-maven-plug...
分类:
Web程序 时间:
2016-05-07 09:53:25
阅读次数:
172
spring之Hooking to bean life cycles
Often, in enterprise application development, developers will want to plug in some extra functionality to be executed just after the construction
and before t...
分类:
编程语言 时间:
2016-04-29 19:23:05
阅读次数:
169
这次我是在EasyUI中使用了KindEditor的编辑器,按照官方给的代码,总是无法获取编辑器里面的值(内容),如下: KindEditor.ready(function (K) { var editor1 = K.create('#content', { cssPath: '../js/plug... ...
分类:
Web程序 时间:
2016-04-29 14:33:50
阅读次数:
228
一、基础介绍 ——In computing, a plug-in (or plugin) is a set of software components that add specific abilities to a larger software application (Wikipedia). ...
分类:
其他好文 时间:
2016-04-26 00:26:50
阅读次数:
438
spring之Hooking to bean life cycles
Often, in enterprise application development, developers will want to plug in some extra functionality to be executed just after the construction
and before t...
分类:
编程语言 时间:
2016-04-24 12:51:13
阅读次数:
213