灵魂体
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《WA 37pts求调,玄关》回复:
没事了,删掉`g[u].push_back((node){v,-w});`就过了
AC on #2#4#6#11 ```cpp #include #include #include #include using namespace std; struct node{ int v,w; }; int n,m,d[50000],cnt[50000]; bool in[50000]; vector g[5…
在讨论《help,TLE #3》回复:
@[Seg_Fault](luogu://user/1442574) A了,把vector >g[100005]; 的pair 换成结构体1.09s->400ms
在讨论《help,TLE #3》回复:
@[cd5dzy](luogu://user/1660467) if(vis[v])continue;写了
在讨论《help,TLE #3》回复:
@[cczzx01_cui](luogu://user/1063815) 没反啊
在讨论《help,TLE #3》回复:
@[zxChicken_fAKer](luogu://user/1282570) 大根堆,负值入队
```cpp #include #include #include #include using namespace std; bool vis[100005]; int n,m,x,y,v,d[100005],s; vector >g[100005]; priority_queue >q; void dijkstra…
```cpp #include #include using namespace std; int n,m; int f[1000][1000]; int main(){ ios::sync_with_stdio(false); cin.tie(0); cin>>n>>m; memset(f,63,sizeof f);…
```cpp #include #include #include #include #include using namespace std; const int MAXN=4e5; vector g[MAXN]; int d[MAXN],cf[MAXN],n,m,a[MAXN],up[32][MAXN],ans;…
```cpp #include #include #include #include using namespace std; const int maxn=300005; struct edge{ int v,w; }; vector e[maxn]; int c,n,s,de[maxn],f[maxn],d[max…
$n #include using namespace std; int ans,a[200],n,minn=1e9; vector g[200]; void dfs(int u,int f,int l){ ans+=l*a[u]; for(auto v:g[u]){ if(v==f)continue; dfs(v,u…
## RT 为什么不是num[1]=0 ```cpp #include #include #include using namespace std; const int maxn=1e6+10; const long long mod=1e9+7; int nex[maxn],num[maxn]; int main()…
在讨论《help,玄关》回复:
```cpp #include #include using namespace std; int ha[200005],pw[200005]/*,ha1[200005],pw1[200005]*/; unordered_map f/*,f1*/; const int mod1=1e9+7,mod2=1e9+9; in…
### WA10 ```cpp #include #include using namespace std; int ha[200005],pw[200005],ha1[200005],pw1[200005]; unordered_map f; const int mod1=1e9+7,mod2=1e9+9; int…
在文章《2026 春晚魔术题解》发表评论:
qp
在讨论《LGR-264、MX-X24 作弊名单》回复:
qp
在讨论《求解惑》回复:
@[WHY20231202](luogu://user/958051) 上面用了下面忘用了......
**为什么我用题目给的快读还没`cin.tie(0)`跑得快** 快读 $49pts$ ```cpp #include using namespace std; int n,m,l[100005],f[100005][100]; inline int read(){ int x=0,f=1;char ch=getcha…
在文章《警示后人》发表评论:
很明显,图片看不清
在文章《警示后人》发表评论:
已完成今日大学习
在文章《NOIP2025 个人题解 - LCA》发表评论:
orz
在文章《NOIP 有啥必知道的 9 个 trick》发表评论:
啥必 知道的 9 个 trick
在文章《怎么科学备战 NOIP》发表评论:
还有生/化竞大佬
在文章《怎么科学备战 NOIP》发表评论:
本文包含医学建议,请谨慎。
在文章《OI 比赛技术动作 & 注意事项集合》发表评论:
O(ans) 做法
在文章《从百草园训到三味书屋》发表评论:
好文
在文章《O(1) 排序算法》发表评论:
求全文
在文章《CSP-J2025游记》发表评论:
%%%
在文章《CSPS》发表评论:
做干净的奥赛。
在文章《CSP-S2025 游记:没人告诉我 NOI Linux 有编译器 bug 啊?》发表评论:
我以前有同学遇到过开了 O3 原地爆0的神秘情况