HEROs_HUAWEI_fang:2020华为软件精英挑战赛-源码

上传者: 42138525 | 上传时间: 2021-02-18 15:07:04 | 文件大小: 17.69MB | 文件类型: ZIP
C++
初赛 测试数据集 test_data.txt官网给的,数据量额外,mini版,忽略时间 test_data_2.txt自己生成的,数据量达到280w,为了方便看到结果对不对,所以是直接复制几份test_data.txt得到的数 test_data_3.txt按照其他算法随机生成的280w数据量,result3.txt就是对应的答案 算法 Main345.py 使用circle保存了已经成环的路径,例如2-1-4-3-2形成一个环,则circle [2] = [1,4,3],circle [1] = [4,3,2] ,circle [4] = [3,2,1],circle [3] = [2,1,4]那么下一次访问到2,1,4,3中的任意一个点后,可以直接将路径加上去即可return 对于只有入度或只有出度的点不被访问,可以直接通过 在访问的过程中,如果退栈之后可以引入点的出度全部删除,以防下

文件下载

资源详情

[{"title":"( 32 个子文件 17.69MB ) HEROs_HUAWEI_fang:2020华为软件精英挑战赛-源码","children":[{"title":"HEROs_HUAWEI_fang-master","children":[{"title":"t_sort.py <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"Readme.md <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"test_data.txt <span style='color:#111;'> 67.04KB </span>","children":null,"spread":false},{"title":"fusai.cpp <span style='color:#111;'> 23.09KB </span>","children":null,"spread":false},{"title":"result.txt <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"doc","children":[{"title":"初赛赛题说明4.3.docx <span style='color:#111;'> 319.09KB </span>","children":null,"spread":false},{"title":"复赛赛题说明.docx <span style='color:#111;'> 315.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"chusai.cpp <span style='color:#111;'> 16.28KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"out_312312312.txt <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"resT.txt <span style='color:#111;'> 875.83KB </span>","children":null,"spread":false},{"title":"res.txt <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"in4_12.txt <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"in4_1.txt <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"test_data.txt <span style='color:#111;'> 66.92KB </span>","children":null,"spread":false},{"title":"in3.txt <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"in.txt <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"out.txt <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"out12.txt <span style='color:#111;'> 56B </span>","children":null,"spread":false},{"title":"result.txt <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"remove_set.txt <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"in2.txt <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"test_data3.txt <span style='color:#111;'> 4.07MB </span>","children":null,"spread":false},{"title":"T.txt <span style='color:#111;'> 33.21MB </span>","children":null,"spread":false},{"title":"in4_123.txt <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"in4_123--.txt <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"res3.txt <span style='color:#111;'> 36.97MB </span>","children":null,"spread":false},{"title":"result3.txt <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"in1.txt <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"rT.txt <span style='color:#111;'> 875.83KB </span>","children":null,"spread":false},{"title":"test_data2.txt <span style='color:#111;'> 6.90MB </span>","children":null,"spread":false}],"spread":false},{"title":"generate_data.py <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"ans.txt <span style='color:#111;'> 998B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明