ACぃhdu
KamyShi
iOS开发工程师
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
杭电_3790_最短路径问题
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3790 这是上周四做的小训练的一个题目,最短路上稍微加了点,之前做的一个题目是直接求两点间最短路,现在不仅求出最短路,还有可能有多条最短路,现让你另外找出最短最便宜那条路。其实还是很简单。 作为一个最短路的练习吧。 代码: #include #include #include #de原创 2012-04-16 19:28:39 · 1120 阅读 · 0 评论 -
hdu2036——改革春风吹满地(计算几何)
Address:http://acm.hdu.edu.cn/showproblem.php?pid=2036 求多边形面积的题目。 #include #include using namespace std; int X[110],Y[110]; int n; double area() { int i; X[n]=X[0]; Y[n]=Y[0]; double s=0; for原创 2013-04-07 20:46:28 · 1041 阅读 · 0 评论 -
2013腾讯马拉松初赛第一场(3.21)比赛(hdu4505、hdu4506、hdu4508、hdu4509)
先把这个做过的报告分享下。 1、地址:http://acm.hdu.edu.cn/showproblem.php?pid=4505 此题目比较简单,解法可以有很多,我采用了标记数组的方法。也可以直接 排序,然后for循环 求出 #include #include using namespace std; int main() { int C,N,a[105]; cin>>原创 2013-03-26 14:18:39 · 1105 阅读 · 0 评论 -
hdu——1087——Super Jumping! Jumping! Jumping!
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1087 求出最长上升子序列的和 #include #include #include using namespace std; int a[1010],dp[1010]; int main() { int i,j,n,m,k; while(scanf("%d",&原创 2013-03-26 16:46:51 · 832 阅读 · 1 评论 -
水两题 hdu1286 || poj3292
Address:http://acm.hdu.edu.cn/showproblem.php?pid=1286 || http://poj.org/problem?id=3292 hdu1286:中文题 自己应该都能读懂。 poj3292:给你一个数,这个数 是4n+1,看能分成多少个(4i+1)*(4j+1)。 1、 #include #include usin原创 2013-04-16 17:06:32 · 758 阅读 · 0 评论
分享