已经验证正确的自己写的代码。这是一部分 #include using namespace std; const int MAX_FLOAT_NUM=65535; static int count=0; static int cost=0; //临时存放路径费用 static int min=MAX_FLOAT_NUM; //最下路径的初始值 // //交换两个数 // void swap(int &x, int &y) { int temp; temp = x; x = y; y = temp; }
2021-12-06 14:52:07 2KB “算法必考”
1