摘要:
#include<iostream> #include<string> #include<cmath> #include<cstring> #include<vector> #include<map> #include<set> #include<algorithm> #include<queue> 阅读全文
posted @ 2020-02-25 21:19
MQFLLY
阅读(312)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<string> #include<cmath> #include<cstring> #include<vector> #include<map> #include<set> #include<algorithm> #include<queue> 阅读全文
posted @ 2020-02-25 14:34
MQFLLY
阅读(238)
评论(0)
推荐(0)
摘要:
输入整数a,b (0<a<b<500) ,输出最佳表达式 使得加数个数尽量小,如果加数个数相同,则最小的分数越大越好 ,输出表达式 考虑从小到大枚举深度上限maxd,每次执行只考虑深度不超过maxd的结点。当前的结点n的深度为g(n),乐观估价函数为h(n),则当 g(n)+h(n)>maxd时应该 阅读全文
posted @ 2020-02-25 11:15
MQFLLY
阅读(242)
评论(0)
推荐(0)

浙公网安备 33010602011771号