摘要: 【概述】 启发式搜索算法,就是在状态空间中的搜索对每一个搜索的位置进行评估,得到最好的位置,再从这个位置进行搜索直到目标。 有时我们会遇到这样的一类题:题目描述的是一道时间复杂度很高的 NP 问题,我们要找到其中的最优解,显然不可能在短时间内找到最优解。 此时... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 题目描述 在成功地发明了魔方之后,鲁比克先生发明了它的二维版本,称作魔板。这是一张有8个大小相同的格子的魔板: 1 2 3 4 8 7 6 5 我们知道魔板的每一个方格都有一种颜色。这8种颜色用前8个正整数来表示。可以用颜色的序列来表示一种魔板状态... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Problem Description You are given one integer number n. Find three distinct integers a,b,c such that 2≤a,b,c and a⋅b⋅c=n or say... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Problem Description There is a robot in a warehouse and n packages he wants to collect. The warehouse can be represented as a c... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Problem Description Polycarp has three sisters: Alice, Barbara, and Cerene. They're collecting coins. Currently, Alice has a co... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Problem Description Our dear Cafe's owner, JOE Miller, will soon take part in a new game TV-show "1 vs. n"! The game goes in r... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Problem Description A.R.C. Markland-N is a tall building with n floors numbered from 1 to n. Between each two adjacent floors in... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 退役了 自南京站爆零血崩之后,一直在跟队友调整状态,在徐州站之前状态调整的差不多,比赛预案也重做了一下,但还是打铁,由于一直在想以后的发展方向,这篇总结也就一直拖着没写 徐州站,到了徐州后身体不舒服,第一天直接在酒店躺了一天,热身赛没去,具体怎么个情况也没跟队... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 人生第一场 ICPC 区域赛,血崩 去比赛之前看到参赛手册,清一色的强队,对拿奖没抱太大希望,只想着能出几个就出几个,尽最大努力就好了 周六下午热身赛,记错时间了去晚了尽半个小时,到场后先测了测 IDE,发现一个都不能用。。。联系现场的技术支持给解决了,签到题... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Problem Description Cuber QQ always envies those Kejin players, who pay a lot of RMB to get a higher level in the game. So he w... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(6) 评论(0) 推荐(0) 编辑