摘要:
Description W 教授正在为国家航天中心计划一系列的太空飞行。每次太空飞行可进行一系列商业性实验而获取利润。现已确定了一个可供选择的实验集合E={E1,E2,…,Em},和进行这些实验需要使用的全部仪器的集合I={I1,I2,…In}。实验Ej需要用到的仪器是I的子集RjÍI。配置仪器Ik 阅读全文
摘要:
Description 给图,求最大流 最大流模板题,这里用dinic Code c++ include include include define Inf 0x7fffffff define N 210 using namespace std; int g[N][N],d[N],q[N 10], 阅读全文
摘要:
Description 题意给定一个矩阵,每个格子有权值,在[ 1000.1000]内,求一条回路使得回路经过权值和最大,每个格子最多经过一次 2≤n≤100,2≤m≤6 Code c++ include include define N 10 define Inf 0x7fffffff using 阅读全文
摘要:
Description 题意:在n m(1 include include define N 14 define ll long long using namespace std; int T,n,m,g[N][N]; ll dp[N][N][1'9'){if(ch==' ')f= 1;ch=get 阅读全文