码迷,mamicode.com
首页 >  
搜索关键字:poj 1979    ( 20310个结果
POJ 2586:Y2K Accounting Bug(贪心)
Y2K Accounting Bug Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10024 Accepted: 4990 Description Accounting for Computer Machinists (ACM) has suff...
分类:其他好文   时间:2014-07-16 17:36:10    阅读次数:259
POJ 1182 :食物链(并查集)
食物链 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 43526   Accepted: 12679 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。...
分类:其他好文   时间:2014-07-16 17:34:12    阅读次数:214
poj 1068 Parencodings 模拟
输入的是在每个' )  '前有多少‘ (  ’, 要我们求得是在每个‘ ) ’前有多少个‘ )  ’, 我的方法是将最原始的图給还原出来,再去寻找‘)’。 对于已经配对的要进行标记不要重复使用。。#include #include int y[505],t[505]; char s[505]; int main() { int a,b,i,j,u; scanf("%d",&a); wh...
分类:其他好文   时间:2014-07-16 17:34:05    阅读次数:154
poj-3080 blue jeans
Description The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth...
分类:其他好文   时间:2014-07-16 17:29:25    阅读次数:190
poj 2251 Dungeon Master
Dungeon Master Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 16089   Accepted: 6241 Description You are trapped in a 3D dungeon and need to find the quicke...
分类:其他好文   时间:2014-07-16 17:27:08    阅读次数:224
poj 3750 小孩报数问题 (约瑟夫问题)
小孩报数问题 Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9883   Accepted: 4597 Description 有N个小孩围成一圈,给他们从1开始依次编号,现指定从第W个开始报数,报到第S个时,该小孩出列,然后从下一个小孩开始报数,仍是报到S个出列...
分类:其他好文   时间:2014-07-16 17:20:23    阅读次数:160
poj1562 Oil Deposits(深搜dfs)
poj1562 Oil Deposits(dfs)...
分类:其他好文   时间:2014-07-16 10:55:47    阅读次数:201
poj 3020 Antenna Placement
二分匹配基础,只要将a,b找出来就好 对于每个“ *”的4个方向进行查找并且记录他们间的关系; 因为我们对a->b和b->a都进行了读取,所以要除2; #include #include char str[41][11]; bool mat[400][400],usedif[400]; int h,w,link[400],num; int dx[4]={0,0,-1,1}; int dy[4...
分类:其他好文   时间:2014-07-16 10:17:10    阅读次数:229
poj 2524 Ubiquitous Religions(并查集)
Ubiquitous Religions Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 23168   Accepted: 11404 Description There are so many different religions in the world t...
分类:其他好文   时间:2014-07-16 09:04:14    阅读次数:226
POJ 2299 Ultra-QuickSort
Ultra-QuickSort Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence eleme...
分类:其他好文   时间:2014-07-16 09:00:13    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!