摘要:
"POJ 3311 Hie with the Pie" 题意:有n+1个地方需要送馅饼,但是只有一个送货员,然后给出每个点到其他n个点的时间,然后找最有方案, 思路:与前两个状压dp不一样,是一个TSP问题。挑战程序设计上面的例题就是一道TSP的问题,不一样的地方就是,在找路径之前,需要用floyd 阅读全文
摘要:
"HDU 1030 Delta wave" 题意:略; 思路:参考的别人的思路, "看这里" include include include include include include using namespace std; int main() { int n,m; while(scanf( 阅读全文
摘要:
"Ignatius and the Princess II" 题意:略 思路:发现一个stl…… include include include include include using namespace std; typedef long long LL; define inf 0x3f3f3 阅读全文
摘要:
"HDU 1026 Ignatius and the Princess I" 题意:给定一张图,X位置不能走,带数字的位置需要在该位置停留 '数字' 秒。然后回溯走的路程 思路:BFS+回溯; include include include include include include using 阅读全文
摘要:
"Codeforces Round 345 (Div. 2)" A. 题意:a,b进行游戏,游戏机的电量分别剩余n,m;充电器只能给一个人充电,一分钟充1%的电,不充电的一分钟掉电2%。问两个人能同时进行几分钟游戏。 思路:模拟就好了。 include using namespace std; de 阅读全文