http://poj.org/problem?id=1469 网络流跑二分图模板题 #include<iostream> #include<cstdio> #include<queue> #include<algorithm> #include<cmath> #include<ctime> #inc ...
分类:
其他好文 时间:
2020-08-05 00:02:52
阅读次数:
67
一:解题思路 这道题目和leetcode72题,基本上是一样的,可以放在一起进行学习。 二:完整代码示例 (C++版和Java版) C++: #include <iostream> #include <string> #include <vector> #include <algorithm> us ...
分类:
其他好文 时间:
2020-08-04 14:04:02
阅读次数:
74
package com.sh.springboottdemo2.util; import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; import javax.crypto.Cipher; import javax.crypto.K ...
分类:
编程语言 时间:
2020-08-04 09:44:58
阅读次数:
66
线段树专题 https://blog.csdn.net/qq_25605637/article/details/46967529 D-逆序对 D - Minimum Inversion Number 思路 找到第i个数前面有多少比它大的,用vis[x+1]……vis[n-1]求和,从前往后读,出现过 ...
分类:
其他好文 时间:
2020-08-03 23:31:34
阅读次数:
87
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.Mvc; 6 using BLL; 7 using MODEL; 8 9 n ...
分类:
其他好文 时间:
2020-08-02 22:21:21
阅读次数:
83
就是简简单单的增删改查,也没什么特殊的或者特别难的业务逻辑,二级联动用一张表的自连接做的,注释都加在代码中了,不多说了,代码如下: 1.首先是我们的实体类数据模型层(model) 地址详情表: using System; using System.Collections.Generic; using ...
asp.net core Webapi是有多种上传文件的方法的 另外swagger ui也可以选择文件来上传文件 下面直接上code 1:WebApi后端代码 1 using System; 2 using System.Collections.Generic; 3 using System.Lin ...
题目链接 线段树,求区间最大值减去区间最小值的值。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; const int N = ...
分类:
其他好文 时间:
2020-07-30 01:40:15
阅读次数:
67
线段树延迟标记的具体应用,是比较简单的区间加和修改 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <queue> using namespace std; const in ...
分类:
其他好文 时间:
2020-07-30 01:16:29
阅读次数:
68
1.yield实现的功能yield return:先看下面的代码,通过yield return实现了类似用foreach遍历数组的功能,说明yield return也是用来实现迭代器的功能的。 using static System.Console; using System.Collections ...