码迷,mamicode.com
首页 >  
搜索关键字:hdu 1247 hats words    ( 33109个结果
hdu 3081 Marriage Match II(最大流 + 二分 + 并查集)
Marriage Match II                                                                           Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Problem Descript...
分类:其他好文   时间:2014-05-26 04:40:15    阅读次数:228
HDU4430:Yukari's Birthday(二分)
Problem Description Today is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday cake! But it's a big challenge for them to place n ca...
分类:其他好文   时间:2014-05-26 04:38:35    阅读次数:239
任意多边形的重心
http://acm.hdu.edu.cn/showproblem.php?pid=1115思路:转换为求三角形的重心。从第一个顶点出发,分别链接i,i+1形成三角形,分别求出每个三角形的面积,总面积之和为各部分之和。根据物理公式n个点的质量是mi,则重心是:X=(x1*m1+x2*m2+...xn...
分类:其他好文   时间:2014-05-26 04:04:18    阅读次数:232
HDU4033:Regular Polygon(二分+余弦定理)
Problem Description In a 2_D plane, there is a point strictly in a regular polygon with N sides. If you are given the distances between it and N vertexes of the regular polygon, can you calculate t...
分类:其他好文   时间:2014-05-26 03:50:40    阅读次数:252
定积分求面积
http://acm.hdu.edu.cn/showproblem.php?pid=1071#include#includeint main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--)...
分类:其他好文   时间:2014-05-26 02:14:56    阅读次数:222
线段交点模版
http://acm.hdu.edu.cn/showproblem.php?pid=1086跨立实验算法#include#include#include#includeusing namespace std;struct Point{ double x,y;} ;struct Line{ ...
分类:其他好文   时间:2014-05-26 02:10:52    阅读次数:224
hdu 2393:Higher Math(计算几何,水题)
Higher MathTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2219Accepted Submission(s): 1219Problem...
分类:其他好文   时间:2014-05-26 01:48:52    阅读次数:337
HDU 4826 简单DP
Problem Description度度熊是一只喜欢探险的熊,一次偶然落进了一个m*n矩阵的迷宫,该迷宫只能从矩阵左上角第一个方格开始走,只有走到右上角的第一个格子才算走出迷宫,每一次只能走一格,且只能向上向下向右走以前没有走过的格子,每一个格子中都有一些金币(或正或负,有可能遇到强盗拦路抢劫,度...
分类:其他好文   时间:2014-05-25 23:41:38    阅读次数:267
HDU 1556
这道题可以用线段树或者树状数组,我在网上看有些大神竟然没用线段树和树状数组就把这道题搞出来了。。汗。。。线段树:线段树不能更新到叶子,否则超时。代码: 1 #include 2 #include 3 #include 4 #include 5 #define N 100005 6 using...
分类:其他好文   时间:2014-05-25 23:17:40    阅读次数:287
HDU 1847 博弈
sg[0]=0;sg[i]=mex{sg[i-2^(j)]} (i>=2^j)mex()为不在此集合的最小非负整数#include #include #include #include using namespace std;using namespace std;int main(){ in...
分类:其他好文   时间:2014-05-25 03:27:01    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!