码迷,mamicode.com
首页 >  
搜索关键字:poj 1061    ( 20310个结果
poj 1185 炮兵阵地(状压dp)
Description 司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图 ...
分类:其他好文   时间:2019-05-01 11:52:58    阅读次数:118
POJ - 2421 Constructing Roads (最小生成树)
There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say t ...
分类:其他好文   时间:2019-04-30 23:42:56    阅读次数:143
POJ 2828 Buy Tickets
题目链接:http://poj.org/problem?id=2828 题目大意: 插队买票,有 n 个人依次插队,一开始买票队列为空,每个插队的人有两个属性 (pos, val) ,pos 表示这个人插队插在了 pos 位置,val 代表这个人的 id,输出 n 个人插完队后形成的序列所对应的 i ...
分类:其他好文   时间:2019-04-30 23:31:09    阅读次数:167
POJ - 2387 Til the Cows Come Home (最短路Dijkstra+优先队列)
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Be ...
分类:其他好文   时间:2019-04-30 23:28:23    阅读次数:123
B - Dining POJ - 3281 网络流
Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabulous ...
分类:其他好文   时间:2019-04-30 22:09:18    阅读次数:132
D - Going Home POJ - 2195 网络流
On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to ...
分类:其他好文   时间:2019-04-30 22:00:07    阅读次数:200
C - A Plug for UNIX POJ - 1087 网络流
You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international m ...
分类:其他好文   时间:2019-04-30 21:30:13    阅读次数:126
JavaBean简介和用法
一、JavaBean的含义 JavaBean是使用Java语言开发的一个可重用组件,能使Html代码与JAVA代码分离,并节省开发时间,简单的说就是一个包含了setter和getter以及至少一个无参构造方法的JAVA类,在框架中或其他方面也管它叫做PO,VO,TO等。例如: package poj ...
分类:编程语言   时间:2019-04-30 14:08:03    阅读次数:114
POJ - 1251A - Jungle Roads 利用最小生成树
The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ag ...
分类:其他好文   时间:2019-04-30 01:22:24    阅读次数:132
POJ - 2031C - Building a Space Station最小生成树
You are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write ...
分类:其他好文   时间:2019-04-30 01:15:11    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!