2007年12月23日

HDU1008 Elevator

摘要: 题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1008 #include using namespace std; int main(int argc, char *argv[]) { int n,curLev,desLev,sumTime,tmp; while(cin>>n&&n!=0) { curLev = 0;//初始层为0 sumTim... 阅读全文

posted @ 2007-12-23 22:29 Phinecos(洞庭散人) 阅读(493) 评论(0) 推荐(0)

HDU1004 Let the Balloon Rise

摘要: 两次遍历map容器,算法复杂度O(n) 阅读全文

posted @ 2007-12-23 14:44 Phinecos(洞庭散人) 阅读(2075) 评论(5) 推荐(0)

HDU1003 最大子序列和问题

摘要: 题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1003 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include using namespace std; in... 阅读全文

posted @ 2007-12-23 13:47 Phinecos(洞庭散人) 阅读(2392) 评论(3) 推荐(0)

导航