[POJ3252]Round Numbers

[POJ3252]Round Numbers试题描述The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, P
4次阅读

[POJ&HDU]杂题记录

POJ2152树形dp,每次先dfs一遍求出距离再枚举所有点转移即可。#include<iostream>#include<cstdio>#include<cmath>#include<cstring>#include<algorithm>
13次阅读

poj 2449 Remmarguts' Date k短路

/*poj 2449 k短路 A* 估价函数是 s到i的距离+i到t的距离 */#include<cstdio>#include<queue>#include<vector>#define inf 1e7#define maxn 100010using names
3次阅读

poj 3463 最短路与次短路的方案数求解

SightseeingTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8968 Accepted: 3139DescriptionTour operator Your Personal Holiday organ
3次阅读

POJ 1149PIGS 网络流 最大流

PIGSTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 20421 Accepted: 9320DescriptionMirko works on a pig farm that consists of M lo
4次阅读

poj2407

欧拉函数裸题。欧拉函数:在数论,对正整数n,欧拉函数是少于或等于n的数中与n互质的数的数目。欧拉函数的定义: E(N)= (  区间[1,N-1] 中与 N 互质的整数个数).  对于 积性函数 F(X*Y),当且仅当 GCD(X,Y)= 1 时, F(X*Y) = F(X)* F(Y) 
6次阅读

BZOJ 2287【POJ Challenge】消失之物

dp好厉害啊。。。。。要多练才行。#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#define maxn 2050using namespace std;in
8次阅读

POJ 3349 Snowflake Snow Snowflakes(简单哈希)

Snowflake Snow SnowflakesTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 39324 Accepted: 10298DescriptionYou m
8次阅读

POJ 2342 Anniversary party(树形dp)

Anniversary partyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7230 Accepted: 4162DescriptionThere is going
4次阅读

POJ 2441 Arrange the Bulls 状压dp

题目链接:http://poj.org/problem?id=2441Arrange the BullsTime Limit: 4000MSMemory Limit: 65536K问题描述Farmer Johnson's Bulls love playing basketball very much
10次阅读