ZJU ACM题
文章平均质量分 63
840722
每天自我更新一次,每天自我淘汰一回,坚持就是胜利!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Gridland
Given a set of N towns and roads between these towns, the problem is to compute the shortest path allowing a salesman to visit each of the towns once and only once and return to the starting point.原创 2009-04-14 09:22:00 · 611 阅读 · 1 评论 -
Number Steps 1414
根据图示规则我们可以发现一下规律:A.如果输入两数x,y两数,满足x==y,且%2为0则为2数之和;B.如果输入两数x,y两数,满足x==y,且%2为1则为2数之和-1;C.如果输入两数x,y两数,满足x-y==2,且%2为0则为2数之和;D.如果输入两数x,y两数,满足x-y==2,且%2为1则为2数之和-1;E.如果输入两数x,y两数,不满足以上ABCD,则输出No原创 2009-04-14 09:55:00 · 551 阅读 · 0 评论 -
Financial Management 1048
题目要求计算平均数. #includeusing namespace std; int main() { double sum=0.0,a; int n=12; while(n--) { cin>>a; sum+=a; } sum=sum/12; cout} http://acm.zju.edu.cn/onlinejudge/showProblem.do原创 2009-04-14 09:49:00 · 388 阅读 · 0 评论 -
HangOver 1045
题目需要实现的功能比较简单..给定一个card lengths 值,要求计算出最少的cards数目; In general you can make n cards overhang by 1/2 + 1/3 + 1/4 + ... + 1/(n + 1) card lengths, where the top card overhangs the second by 1/2, the s原创 2009-04-14 09:43:00 · 472 阅读 · 0 评论
分享