上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: Input: standard inputOutput: standard output Time Limit: 2 seconds The small sawmill in Mission, British Columbia, has developed a brand new way of pa 阅读全文
posted @ 2018-07-29 20:12 StarHai 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 A*算法 A*算法在人工智能中是一种典型的启发式搜索算法,启发中的估价是用估价函数表示的: 其中f(n)是节点n的估价函数,g(n)表示实际状态空间中从初始节点到n节点的实际代价,h(n)是从n到目标节点最佳路径的估计代价。另外定义h'(n)为n到目标节点最佳路径的实际值。如果h'(n)≥h(n 阅读全文
posted @ 2018-07-29 19:56 StarHai 阅读(2776) 评论(0) 推荐(0) 编辑
摘要: Marica is very angry with Mirko because he found a new girlfriend and she seeks revenge.Since she doesn't live in the same city, she started preparing 阅读全文
posted @ 2018-07-29 19:56 StarHai 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 杭州有N个景区,景区之间有一些双向的路来连接,现在8600想找一条旅游路线,这个路线从A点出发并且最后回到A点,假设经过的路线为V1,V2,....VK,V1,那么必须满足K>2,就是说至除了出发点以外至少要经过2个其他不同的景区,而且不能重复经过同一个景区。现在86... 阅读全文
posted @ 2018-07-29 19:56 StarHai 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Since 1945, when the first nuclear bomb was exploded by the Manhattan Project team in the US, the number of nuclear weapons have soar... 阅读全文
posted @ 2018-07-29 19:56 StarHai 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Weiwei is a software engineer of ShiningSoft. He has just excellently fulfilled a software project with his fellow workers. His boss i... 阅读全文
posted @ 2018-07-29 19:56 StarHai 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 喜马拉雅山上的猴子Time Limit: 1000 MS Memory Limit: 256 MBSubmit Status余周周告诉我喜马拉雅山上有猴子,他们知道点石成金的方法。我不信,于是余周周带我去喜马拉雅山拜访猴子。喜马拉雅山上有n个猴子聚落,不妨叫... 阅读全文
posted @ 2018-07-29 19:56 StarHai 阅读(358) 评论(0) 推荐(0) 编辑
摘要: Henry decides to develop a web site, which will provide the service of transit search. But he can only get the transit data of Guangzh... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Liyuan wanted to rewrite the famous book “Journey to the West” (“Xi You Ji” in Chinese pinyin). In the original book, the Monkey King ... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Ali has taken the Computer Organization and Architecture course this term. He learned that there may be dependence between instruction... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(352) 评论(0) 推荐(0) 编辑
摘要: oooccc1 is a Software Engineer who has to ride to the work place every Monday through Friday. For a long period, he went to office w... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the sa... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(260) 评论(0) 推荐(0) 编辑
摘要: You have been given a matrix C N*M, each element E of C N*M is positive and no more than 1000, The problem is that if there exist N nu... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(169) 评论(0) 推荐(0) 编辑
摘要: A group of thieves is approaching a museum in the country of zjsxzy,now they are in city A,and the museum is in city B,where keeps man... 阅读全文
posted @ 2018-07-29 19:55 StarHai 阅读(208) 评论(0) 推荐(0) 编辑
摘要: F. Xor-Pathstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a rectangul... 阅读全文
posted @ 2018-07-29 19:54 StarHai 阅读(321) 评论(0) 推荐(0) 编辑
摘要: A supermarket in Tehran is open 24 hours a day every day and needs a number of cashiers to fit its need. The supermarket manager has h... 阅读全文
posted @ 2018-07-29 19:54 StarHai 阅读(349) 评论(0) 推荐(0) 编辑
摘要: It is well known that, in the period of The Three Empires, Liu Bei, the emperor of the Shu Empire, was defeated by Lu Xun, a general of the Wu Empire. 阅读全文
posted @ 2018-07-29 19:54 StarHai 阅读(303) 评论(0) 推荐(0) 编辑
摘要: You are given n closed, integer intervals [ai, bi] and n integers c1, ..., cn. Write a program that: > reads the number of intervals, their endpoints 阅读全文
posted @ 2018-07-29 19:54 StarHai 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 命运石之门Time Limit: 1000 MS Memory Limit: 256 MBSubmit Status“这一切都是命运石之门的选择!“凶真博士发明了能够逆转时间的电话微波炉,也就是微型时光机。每次时光机开机时,时光机顶部的数字屏上会随机显示一个数... 阅读全文
posted @ 2018-07-29 19:53 StarHai 阅读(410) 评论(0) 推荐(0) 编辑
摘要: Chiaki often participates in international competitive programming contests. The time zone becomes a big problem. Given a time in Beij... 阅读全文
posted @ 2018-07-25 21:21 StarHai 阅读(341) 评论(0) 推荐(0) 编辑
摘要: hiaki has an array of nn positive integers. You are told some facts about the array: for every two elements aiai and ajaj in the subar... 阅读全文
posted @ 2018-07-25 21:18 StarHai 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Chiaki has 3n3n points p1,p2,…,p3np1,p2,…,p3n. It is guaranteed that no three points are collinear. Chiaki would like to construct nn ... 阅读全文
posted @ 2018-07-25 21:03 StarHai 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Given an integer nn, Chiaki would like to find three positive integers xx, yy and zzsuch that: n=x+y+zn=x+y+z, x∣nx∣n, y∣ny∣n, z∣nz∣n ... 阅读全文
posted @ 2018-07-25 21:01 StarHai 阅读(277) 评论(0) 推荐(0) 编辑
摘要: You surely have never heard of this new planet surface exploration scheme, as it is being carried out in a project with utmost secrecy... 阅读全文
posted @ 2018-07-25 20:47 StarHai 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Senior Pan fails in his discrete math exam again. So he asks Master ZKC to give him graph theory problems everyday. The task is simple... 阅读全文
posted @ 2018-07-25 20:36 StarHai 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页