【題解】洛谷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>
相關文章
相關標籤/搜索