Codeforces 938G Shortest Path Queries 线段树分治+并查集+线性基
题意给出一个连通带权无向图,边有边权,要求资瓷q个操作:1xyd在原图中加入一条x到y权值为b的边2xy把图中x到y的边删掉3xy表示询问x到y的异或最短路保证任意操作后原图连通无重边自环且操作均合法n,m,q#include#include#include#include#include#include#definepb(x)push_back(x)#definemp(x,y)make_pair