码迷,mamicode.com
首页 >  
搜索关键字:poj 1979    ( 20310个结果
POJ - 3278
Catch That CowTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionFarmer John has been informed of the location of a fugi.....
分类:其他好文   时间:2014-07-22 22:47:37    阅读次数:191
POJ 3280 Cheapest Palindrome(DP)
题目链接题意 :给你一个字符串,让你删除或添加某些字母让这个字符串变成回文串,删除或添加某个字母要付出相应的代价,问你变成回文所需要的最小的代价是多少。思路 :DP[i][j]代表的是 i 到 j 这一段位置变成回文所需的最小的代价。 1 //3280 2 #include 3 #include ....
分类:其他好文   时间:2014-07-22 22:46:35    阅读次数:217
uva 646 - The Gourmet Club(暴力)
题目链接:uva 646 - The Gourmet Club 题目大意:有16个人参加聚会,聚会一共5天,每天有4桌,每桌4个人,一起吃饭的4个人会互相认识。现在要安排座位使得16个任意两个人都互相认识。给出前三天的安排,求后两天的安排。 解题思路:任意两个人之间肯定只能同桌一次。所以根据这个条件,只要枚举出第4天的第1桌的情况,就可推导出所有的,或者是矛盾。 在Poj和Zoj...
分类:其他好文   时间:2014-07-22 00:10:33    阅读次数:239
POJ 2996 Help Me with the Game 模拟
Help Me with the Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3344   Accepted: 2145 Description Your task is to read a picture of a chessboard positi...
分类:其他好文   时间:2014-07-21 23:38:44    阅读次数:265
poj 1837
Balance Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 10307   Accepted: 6377 Description Gigel has a strange "balance" and he wants to poise it. Actually, ...
分类:其他好文   时间:2014-07-21 23:27:52    阅读次数:235
POJ 2492 A Bug's Life
题意:给你一个n m,n代表有多少只昆虫,m代表2只给定的昆虫可以交配 要你来判断是否出现了同性的昆虫相交的情况 思路:并查集的一个小的应用。运用类别转移来做,详细请看代码,这个代码网上叫类别转移啊,发现新大陆了 #include #include int f[2005],link[2005]; int find(int x) { if(x!=f[x]) f[x]=f...
分类:其他好文   时间:2014-07-21 23:27:51    阅读次数:222
poj 2151 Check the difficulty of problems(概率DP)
DP-概率DP,一道简单题。...
分类:其他好文   时间:2014-07-21 23:15:53    阅读次数:279
poj 1789 Truck History 最小生成树
Description Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other for furniture, or for bricks. The company has its own code describing each...
分类:其他好文   时间:2014-07-21 22:38:48    阅读次数:286
poj 2392 Space Elevator (多重背包)
Space Elevator Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8110   Accepted: 3843 题目大意  :一群牛要上天  用一些石块堆塔  给出石块的种类  及其每个种类的数量 和该种石块能出现的最高高度  和每种石块的数量 求怎么摆放才能...
分类:其他好文   时间:2014-07-21 22:27:58    阅读次数:216
POJ 1659:Frogs' Neighborhood(Havel-Hakimi定理)
Frogs' Neighborhood Time Limit: 5000MS   Memory Limit: 10000K Total Submissions: 6898   Accepted: 3006   Special Judge Description 未名湖附近共有N个大小湖泊L1, L2, ..., Ln(...
分类:其他好文   时间:2014-07-21 22:16:48    阅读次数:319
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!