概要:CreateMap();int depth=0;for(int i=0; i{vector tPath;int t=dfs(i,tPath);if( t>depth ){bestPath = tPath;depth = t;}}cout << depth <for( int i=0; i<(int)bestPath.size(); i++){cout << height[bestPath[i]]<< " " << weight[bestPath[i]]<}return 0;}上一页 [1] [2] [3]
创新工场2017年校园招聘笔试试题,标签:笔试大全,http://www.88haoxue.comint depth=0;
for(int i=0; i
{
vector tPath;
int t=dfs(i,tPath);
if( t>depth )
{
bestPath = tPath;
depth = t;
}
}
cout << depth <
for( int i=0; i<(int)bestPath.size(); i++)
{
cout << height[bestPath[i]]<< " " << weight[bestPath[i]]<
}
return 0;
}
上一篇:网通经典笔试题
最新更新