【题解】洛谷P1351[NOIP2014]联合权值 乱搞

题目链接 处理出每个点相邻点的和,然后直接搞一搞 #include<cstdio> #include<vector> #include<algorithm> using namespace std; const int N=2e5+10,mod=10007; inline int read() { int x=0,f=0;char ch=getchar(); while(ch<'0'||ch>
相关文章
相关标签/搜索