91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 130KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-06-26
  • 語言: C/C++
  • 標(biāo)簽: C++??比賽??

資源簡介

該資源為2018年5月份京東舉辦的物流車輛調(diào)度比賽的測試代碼,該比賽的參與者來時(shí)與全球500所高等院校,值得你學(xué)習(xí)!

資源截圖

代碼片段和文件信息

//?JData.cpp?:?Defines?the?entry?point?for?the?console?application.
//

#include?“stdafx.h“
#include?“read_file.h“
#include?“l(fā)ogistics.h“
#include?“population.h“
#include?“synchroSearch.h“

#include?
#include?
#include?
#include?
#include?
using?namespace?std;
const?int?K?=?10;

vector?sellMatchCharger;??//下標(biāo)對應(yīng)sell的id,內(nèi)容是?charger的下標(biāo)

int?main()
{
DWORD?start_time?=?GetTickCount();
{
//double?t?=?43.5;
//cout?< vector?vehicle;????//保存車輛信息
vehicle.push_back(Vehicle(1?“iveco“?12?2.0?100000?0.5?0.012?200));
vehicle.push_back(Vehicle(2?“truck“?16?2.5?120000?0.5?0.014?300));
//showVehicle(vehicle[0]);
//showVehicle(vehicle[1]);
vector?nodeList;??//保存input_node內(nèi)容
read_node(nodeList);????//讀取input_node.txt操作

vector?seller(nodeList.begin()?+?1?nodeList.begin()?+?1001);?//1-1000商戶信息
vector?charger(nodeList.begin()?+?1001?nodeList.end());

vector>?distance?time;
read_distance(distance?time);

//vector>?kSellers;????????????//按照地理位置分類
//kSellers?=?kMeans(seller?K);

//vector?resulttempResult;????//保存結(jié)果
//for?(size_t?i?=?0;?i? //{
// tempResult?=?execute(kSellers[i]?charger?distance?time?vehicle);
// result.insert(result.end()?tempResult.begin()?tempResult.end());
//}

calSellChargerMatch(sellMatchCharger?distance?charger?seller); //計(jì)算sellMatchCharger;
//下標(biāo)對應(yīng)sell的id,內(nèi)容是?charger的下標(biāo)

//vector?result;
//result?=?execute(seller?charger?distance?time?vehicle);

//cout?<

vector?result;
result?=?synchroSearch(seller?charger?distance?time?vehicle);
cout?<

//遺傳算法
inheritance(result?distance?time?vehicle?nodeListcharger);



//cout?< //showResult(result);

//changeVehicleType(resultdistancevehicle); //轉(zhuǎn)變貨車的型號
changeVehicleType2(result?distance?time?vehicle?nodeList?charger);

sort(result.begin()?result.end()?lessVehicleType);

vector?answer;
answer?=?getAnswer(result?vehicle);

whrit_answer(answer);

}
DWORD?end_time?=?GetTickCount();?//結(jié)束計(jì)時(shí)
cout?< return?0;
}



?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-17?03:59??JData-master\
?????文件??????????51??2018-08-17?03:59??JData-master\README.md
?????目錄???????????0??2018-08-17?03:59??JData-master\code\
?????文件????????2657??2018-08-17?03:59??JData-master\code\JData.cpp
?????文件????????8645??2018-08-17?03:59??JData-master\code\JData.vcxproj
?????文件????????2610??2018-08-17?03:59??JData-master\code\JData.vcxproj.filters
?????文件?????????165??2018-08-17?03:59??JData-master\code\JData.vcxproj.user
?????文件??????????49??2018-08-17?03:59??JData-master\code\README.md
?????文件????????1701??2018-08-17?03:59??JData-master\code\ReadMe.txt
?????文件???????14298??2018-08-17?03:59??JData-master\code\Result.csv
?????文件?????????611??2018-08-17?03:59??JData-master\code\Result.txt
?????文件???????79797??2018-08-17?03:59??JData-master\code\input_node.csv
?????文件???????60422??2018-08-17?03:59??JData-master\code\input_node.txt
?????文件???????10615??2018-08-17?03:59??JData-master\code\input_vehicle_type.csv
?????文件???????18967??2018-08-17?03:59??JData-master\code\logistics.cpp
?????文件????????5262??2018-08-17?03:59??JData-master\code\logistics.h
?????文件???????21767??2018-08-17?03:59??JData-master\code\population.cpp
?????文件????????4324??2018-08-17?03:59??JData-master\code\population.h
?????文件????????4854??2018-08-17?03:59??JData-master\code\read_file.cpp
?????文件?????????528??2018-08-17?03:59??JData-master\code\read_file.h
?????文件?????????292??2018-08-17?03:59??JData-master\code\stdafx.cpp
?????文件?????????320??2018-08-17?03:59??JData-master\code\stdafx.h
?????文件????????3984??2018-08-17?03:59??JData-master\code\synchroSearch.cpp
?????文件?????????883??2018-08-17?03:59??JData-master\code\synchroSearch.h
?????文件?????????314??2018-08-17?03:59??JData-master\code\targetver.h

評論

共有 條評論