上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2013年4月27日

HDU 4472 HDOJ Count 2012 Asia Chengdu Regional Contest I

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4472CountTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 418Accepted Submission(s): 272Problem DescriptionProf. Tigris is the head of an archaeological team who is currently in charge of an excavation 阅读全文

posted @ 2013-04-27 16:52 圣手摘星 阅读(206) 评论(0) 推荐(0) 编辑

HDU 4474 HDOJ Yet Another Multiple Problem 2012ACM亚洲赛成都赛区K题

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4474Yet Another Multiple ProblemTime Limit: 40000/20000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 751Accepted Submission(s): 209Problem DescriptionThere are tons of problems about integer multiples. Despite the fact t 阅读全文

posted @ 2013-04-27 16:31 圣手摘星 阅读(220) 评论(0) 推荐(0) 编辑

2013年4月25日

HDU 4473 Exam 构造枚举

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4473ExamTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 329Accepted Submission(s): 131Problem DescriptionRikka is a high school girl suffering seriously from Chūnibyō (the age of fourteen would eithe 阅读全文

posted @ 2013-04-25 22:41 圣手摘星 阅读(188) 评论(0) 推荐(0) 编辑

2013年4月23日

判断一个数是否为整数(转)

摘要: 思考:判断一个数是否是“整数”,不能用“类型”来判断,因为实型的3.0和4.00也是整数(只不过是多了几个零罢了)。应该用自定义的函数来判断。方法:float型的数都有些偏差,比如4.000,只要存到计算机里面它就不是完完全全的4.000,计算机存储实数的时候,是按照指数格式来存储的,所以会有一定的偏差。但是在一定的精度范围之外,我们可以认为它就是整数了。比如:当我们从键盘输入4.000时,它就等于4,虽然储存成实数时,会有一些偏差,但是当我们判断的时候,它应该就是整数;假如我们写成scanf("%lf",&n),并输入4.000,此时判断的结果应该是YES而不是N 阅读全文

posted @ 2013-04-23 18:16 圣手摘星 阅读(1377) 评论(0) 推荐(0) 编辑

HDOJ分类(转来方便自己)

摘要: 链接:http://acm.hdu.edu.cn/listproblem.php?vol=1分类一:基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、1076、1089、1090、1091、1092、1093、1094、1095、1096、1097、1098、1106、1108、1157、1163、1164、1170、1194、1196、1197、1201、1202、1205、1219、1234、1235、1236、1248、1 阅读全文

posted @ 2013-04-23 13:35 圣手摘星 阅读(229) 评论(0) 推荐(0) 编辑

POJ 2031 Building a Space Station

摘要: POJ 2031 Building a Space StationD -Building a Space StationTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uPOJ 2031DescriptionYou are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write a 阅读全文

posted @ 2013-04-23 13:08 圣手摘星 阅读(176) 评论(0) 推荐(0) 编辑

2013年4月22日

zoj 1406 Jungle Roads(最小生成树)

摘要: C -Jungle RoadsTime Limit:1000MSMemory Limit:10000KBDescriptionThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentlessly, so the large road network is too expens 阅读全文

posted @ 2013-04-22 21:26 圣手摘星 阅读(205) 评论(0) 推荐(0) 编辑

zoj 1002 Fire Net (DFS搜索)

摘要: 1002 Fire NetFire NetTime Limit:2 Seconds Memory Limit:65536 KBSuppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall.A blockhouse is a small castle that has four openings through which to s 阅读全文

posted @ 2013-04-22 21:17 圣手摘星 阅读(136) 评论(0) 推荐(0) 编辑

2013年4月21日

POJ 1258 Agri-Net 克鲁斯卡尔(Kruskal)算法&并查集

摘要: J -Agri-NetTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uPOJ 1258DescriptionFarmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high speed 阅读全文

posted @ 2013-04-21 20:38 圣手摘星 阅读(187) 评论(0) 推荐(0) 编辑

POJ 2421 Constructing Roads 克鲁斯卡尔(Kruskal)算法

摘要: F -Constructing RoadsTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uPOJ 2421DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and 阅读全文

posted @ 2013-04-21 20:35 圣手摘星 阅读(230) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航