摘要:
1、加法 vector<int> add(vector<int> &A, vector<int> &B) { if (A.size() < B.size()) { return add(B, A); } vector<int> C;int t = 0;//t作为两个相加的中转处 for (int i 阅读全文
posted @ 2025-10-15 22:07
yubai111
阅读(8)
评论(0)
推荐(0)
摘要:
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); //取消同步流 阅读全文
posted @ 2025-10-15 20:55
yubai111
阅读(3)
评论(0)
推荐(0)
摘要:
1、二分图匹配问题(判断是否二分图可以使用并查集) ` int n1, n2, m; int h[500], e[100010],ne[100010], idx = 0; int st[510], match[510];//st 标记是否递归找过, match[x]:和 x 编号的男生的编号 voi 阅读全文
posted @ 2025-10-15 20:55
yubai111
阅读(4)
评论(0)
推荐(0)

浙公网安备 33010602011771号