来源: http://poj.org/problem?id=1270
Following Orders
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 3812
Accepted: 1512
Description
Order is an...
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2089
思路:用变量记录吉利数,和最高位为2的吉利数还有不是吉利数的个数。。。
code:
#include
#include
#include
using namespace std;
int dp[10][3]; //dp[i][j] ,i表示位数,j表示状态//dp[i...
分类:
其他好文 时间:
2014-08-12 22:06:24
阅读次数:
268
/*迷瘴
通过悬崖的yifenfei,又面临着幽谷的考验——
幽谷周围瘴气弥漫,静的可怕,隐约可见地上堆满了骷髅。由于此处长年不见天日,导致空气中布满了毒素,一旦吸入体内,便会全身溃烂而死。
幸好yifenfei早有防备,提前备好了解药材料(各种浓度的万能药水)。现在只需按照配置成不同比例的浓度。
现已知yifenfei随身携带有n种浓度的万能药水,体积V都相同,浓度则分别为Pi%。并且知...
分类:
其他好文 时间:
2014-08-12 19:03:04
阅读次数:
234
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexi...
分类:
其他好文 时间:
2014-08-12 18:29:14
阅读次数:
231
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime co...
分类:
其他好文 时间:
2014-08-12 18:26:14
阅读次数:
280
来源:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=4&problem=227&mosmsg=Submission+received+with+ID+14026069
The House Of Santa Claus
In...
分类:
其他好文 时间:
2014-08-12 17:08:04
阅读次数:
288
最大联通环 POJ 3895 Cycles of Lanes (dfs)...
分类:
其他好文 时间:
2014-08-12 10:26:14
阅读次数:
235
原理
Camshift算法是Continuously Adaptive Mean Shift algorithm的简称。它是一个基于MeanSift的改进算法。它首次由Gary R.Bradski等人提出和应用在人脸的跟踪上,并取得了不错的效果。由于它是利用颜色的概率信息进行的跟踪,使得它的运行效率比较高。 Camshift算法的过程由下面步骤组成:
(1)确定初始目标及其区域;
...
分类:
其他好文 时间:
2014-08-12 00:47:23
阅读次数:
471
#include #include #include #include #include #include #define LL __int64#define N 210using namespace std;struct Line{ double x,y1,y2; int f;}line[N];s...
分类:
其他好文 时间:
2014-08-12 00:01:33
阅读次数:
240
#include #include #define N 4000using namespace std;int a[N],b[N],c[N],d[N],ab[N*N],cd[N*N];int main(){int n,ans,i,j,k;while(scanf("%d",&n)!=EOF){ ...
分类:
其他好文 时间:
2014-08-12 00:01:13
阅读次数:
240