打开bash,运行bluetoothctl命令 # bluetoothctl 列出可用的蓝牙控制器 [bluetooth]# list 选择使用的蓝牙控制器 [bluetooth]# select 01:23:45:67:89:AB 显示蓝牙控制器的详细信息 bluetooth]# show 打开蓝牙 [bluetooth]# power on 开始扫描 [bluetooth]# scan on 结束扫描 [bluetooth]# scan off 选择蓝牙设备配对 [bluetooth]# p
题目大意:给定n个数字以及每个数字的个数和权值,将满足条件的数字配对,使得总代价不小于0,且配对最多 最大费用最大流拆点,对于每个点,连一条由S到该点的边,容量为b,花费为0,再连一条到T的边 对于每个合法的配对,连一条容量无穷,费用为ci*cj的边 跑最大费用最大流即可 #include<bits/stdc++.h> using namespace std; #define inf (1ll<<50) #define ll long long struct edge{ int t