CSP-S模拟30
垃圾场
A. 灯若辰星 (light)
打表题。
题意就是求第一类、第二类斯特林数 \(\mod 2\) 意义下的值。
Code:
#include<bits/stdc++.h>
#define int long long using namespace std;const int Size=(1…
运行代码
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
from torchvision.datasets import CIFAR10
from torchvision.transforms import ToTensor, Nor…
优先队列、并查集
https://ac.nowcoder.com/acm/contest/22904?from=acdiscuss牛客刷题-Day13
今日刷题:\(1001-1005\)
1002 Running Median
题目描述
For this problem, you will write a program that reads in a …
1、二分图匹配问题(判断是否二分图可以使用并查集)
`// 邻接表存储图
int n1, n2, m;
int h[500], e[100010],ne[100010], idx = 0;
//st 标记是否递归找过, match[x]:和 x 编号的男生的编号
int st[510], match[5…