版本比较
hyhhh_kami
用户名
增加 1 行删除 1 行
11huangyiheng08hyhhh_kami个人介绍
增加 57 行删除 4 行
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061100 行未改动16216316416510916611111216716816917033 行未改动204205206207154$$\mathbf{x=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}}$$$$\mathbf{\Delta = b^2 - 4ac}$$
```cpp
/*#include<bits/stdc++.h>using namespace std;typedef long long ll;typedef unsigned long long ull;struct str{ int x,y; bool operator < (const str &x) const{ return y>x.y; }};vector<str> a[200020];int n,m;bool b[200020];int c[200020],q;priority_queue<str> pq;int main(){ ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); memset(b,0,sizeof(b)); memset(c,0x7f7f7f7f,sizeof(c)); cin>>n>>m>>q; for(int i=1;i<=m;i++){ int x,y,z; cin>>x>>y>>z; a[x].push_back({y,z}); } c[q]=0; pq.push({q,0}); while(!pq.empty()){ int u=pq.top().x; pq.pop(); if(b[u]) continue; b[u]=1; for(auto y:a[u]){ int v=y.x; int w=y.y; if(c[v]>c[u]+w){ c[v]=c[u]+w; pq.push({v,c[v]}); } } } for(int i=1;i<=n;i++)cout<<c[i]<<' '; return 0;}/*```# *弱智远走,甜菜欢迎*(~~贝利亚入侵了这个团队~~)# 请不要随意篡改团里的东西!!!# 闲事区100 行未改动 SetCursorPos(rand()%1000,rand()%1000); } return 0;}```
http://10.178.106.3/navigation2.phphttps://www.arealme.com/click-speed-test/cn/
1 2 3 4 5 6 原
1 3 6 10 15 21 前缀和33 行未改动
c[x1][y2+1]-=k;
c[x2+1][y2+1]+=k;https://www.bqgnew.com/book/64238/94236724.html