• 2023-11-07traffic
    ●wegotstuckintraffic●letstakethenextexit(whereyouleavethehighway)●wemissedourexit●atrafficlight'scolorshelpyoudrive.greenmeansgo.●didyougetstuckintrafficonthehighway●backfrommytrip●Iwentoverthespee
  • 2023-08-07go项目部署到服务器上
    生成linux可执行文件main。首先再windowscmd平台下生成linux可执行的文件在cmd或者powershell执行以下命令setGOARCH=amd64goenv-wGOARCH=amd64setGOOS=linuxgoenv-wGOOS=linux然后到main.go所在的目录下,正常gobuild即可gobuildmain.go如果想要再切换回w
  • 2023-05-12题解 ABC239F【Construct Highway】
    翻译:给定\(n,m\)和度数数组\(\{d_i\}\),再给你\(m\)条边,请构造一棵\(n\)点的树包含这\(m\)条边,且第\(i\)个点的度数为\(d_i\),或者判断无解。显然,若\(\sumd_i\ne2(n-1)\),则无解。然后对于输入的每条边,使用并查集维护,再求出在这\(m\)条边的基础上每个点还需要多
  • 2023-02-13node实现http接口请求(解决跨域)
    varexpress=require('express');varapp=express();varbodyParser=require('body-parser')app.post('/highway',bodyParser.json(),function(req,res){
  • 2023-02-08【PAT顶】1001 Battle Over Cities - Hard Version (35 分) Kruskal求最小生成树
    problem1001BattleOverCities-HardVersion(35分)Itisvitallyimportanttohaveallthecitiesconnectedbyhighwaysinawar.Ifacityisconqueredbyt
  • 2023-01-03NC52867 Highway
    题目链接题目题目描述InICPCCamptherewerentownsconvenientlynumberedwith\(1,2,\dots,n\)connectedwith(n-1)roads.Thei-throadconnectingtown
  • 2022-12-14UVA1615 高速公路 Highway
    #include<iostream>#include<cmath>#include<algorithm>#include<cstdio>usingnamespacestd;typedeflonglongll;typedefdoubledb;constdbeps=1e-4
  • 2022-08-28Highway - 图论 - 树的直径 - 最短路
    http://https://ac.nowcoder.com/acm/problem/52867题目大意有n个城市,城市之间有n-1条无向道路。Bob在任意两个城市之间建造高速公路的花费是这两个城市之间的最短路径
  • 2022-08-181011 Highway 树的直径 树的最大生成树
     链接:https://ac.nowcoder.com/acm/contest/26077/1011来源:牛客网题目描述InICPCCamptherewerentownsconvenientlynumberedwith1,2,