首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
uly
2026年3月7日 17:20
土豪我们做朋友吧 题解:75%超时解
P1129
回复 0
|
赞 8
|
浏览 167
#include <bits/stdc++.h> using namespace std; const int MAX =100005; int fa[MAX]; int money[MAX]; int find(int x) { if (x == fa[x]) { return x; } fa[x] = find(fa[x]); return fa[x]; } void Deal(int N) { int choice; cin >> choice; ...
题目
土豪我们做朋友吧
题解数量
1
发布题解
在线答疑
热门题解
1
土豪我们做朋友吧 题解:75%超时解