题目传送门 分析: 费用流,然而不会优化,在线膜拜大佬的博客OrzOrzOrz #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> #include<vector> #include<queue> #defin ...
分类:
其他好文 时间:
2020-06-26 16:28:00
阅读次数:
54
/* sysmets.h -- system metrics display structure */ #define NUMLINES ((int) (sizeof sysmetrics / sizeof sysmetrics[0])) struct { int iIndex; TCHAR* sz ...
分类:
其他好文 时间:
2020-06-26 14:54:23
阅读次数:
48
#include<bits/stdc++.h> using namespace std; #define int long long namespace yspm{ inline int read() { int res=0,f=1; char k; while(!isdigit(k=getchar ...
分类:
其他好文 时间:
2020-06-26 11:06:32
阅读次数:
48
直接判断单价和单买就可以 #include<bits/stdc++.h> #include<string.h> using namespace std; #define rep(i,j,k) for(LL i=(j); i<(k); ++i) #define pb push_back #define ...
分类:
其他好文 时间:
2020-06-26 10:58:28
阅读次数:
67
.h { #ifndef __AVDIO_H__ #define __AVDIO_H__ #include "cocos2d.h" using namespace cocos2d; #include <string.h> #include <iostream> #include "cocos/ui/ ...
分类:
其他好文 时间:
2020-06-25 23:16:56
阅读次数:
50
K-periodic Garland 题目链接:https://codeforces.com/contest/1353 题目大意: 给你一个长度为 n 的 01 字符串和一个整数 k,每次操作你可以选择一个字符并改变其状态,要使字符串中相邻 1 的距离为 k,问最少需要操作几次。 想法: 我们设 d ...
分类:
其他好文 时间:
2020-06-25 23:09:52
阅读次数:
62
就是线性代数的初等行变化: 倍加。 倍乘。 交换行。 #include <bits/stdc++.h> #define mp make_pair #define pb push_back using namespace std; typedef long long ll; typedef pair< ...
分类:
其他好文 时间:
2020-06-25 21:24:54
阅读次数:
60
#include <iostream> #include <cstdio> #include <cstring> #define N 200005 using namespace std; #define int long long int n,m,S,T,tmp1,tmp2,tot; int id ...
分类:
其他好文 时间:
2020-06-25 13:31:36
阅读次数:
58
#include <stdio.h> #include <stdlib.h> #define LEN sizeof(struct node) typedef struct node{ int data; struct node *next; }List; List *selectsort(List ...
分类:
其他好文 时间:
2020-06-25 10:12:54
阅读次数:
53
#include <bits/stdc++.h> #define ll long long #define fr first #define sc second #define pii pair<int, int> #define all(v) v.begin(), v.end() using na ...
分类:
其他好文 时间:
2020-06-25 09:24:44
阅读次数:
104