#include <iostream>#include <string>using namespace std; void deleteDigite(int k, string str){ int len = str.length(); for(int i=0; i<k; i++) //there ...
分类:
其他好文 时间:
2017-09-21 16:39:32
阅读次数:
97
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6214 题意:求边数最小的割。 解法: 建边的时候每条边权 w = w * (E + 1) + 1; 这样得到最大流 maxflow / (E + 1) ,最少割边数 maxflow % (E + 1) ...
分类:
其他好文 时间:
2017-09-18 20:37:44
阅读次数:
245
hdu 6214 Smallest Minimum Cut[最大流] 题意:求最小割中最少的边数。 题解:对边权乘个比边大点的数比如300,再加1 ,最后,最大流对300取余就是边数啦。。 1 #include<iostream> 2 #include<cstdio> 3 #include<cstr ...
分类:
其他好文 时间:
2017-09-17 20:07:48
阅读次数:
209
1.Mah.ceil() * Returns the smallest (closest to negative infinity) * {@code double} value that is greater than or equal to the * argument and is equal ...
分类:
编程语言 时间:
2017-09-04 11:55:23
阅读次数:
145
The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For e ...
分类:
其他好文 时间:
2017-09-03 21:04:53
阅读次数:
162
找出能被两个给定参数和它们之间的连续数字整除的最小公倍数。 范围是两个数字构成的数组,两个数字不一定按数字顺序排序。 例如对 1 和 3 —— 找出能被 1 和 3 和它们之间所有数字整除的最小公倍数。 如果你被卡住了,记得开大招 Read-Search-Ask 。尝试与他人结伴编程、编写你自己的代 ...
分类:
其他好文 时间:
2017-09-02 15:37:30
阅读次数:
126
首先引入maven: 要解析的 xml 内容: java 代码解析带命名空间内的Events标签内容: 输出结果: ...
分类:
其他好文 时间:
2017-08-24 13:30:47
阅读次数:
241
题目: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: T ...
分类:
其他好文 时间:
2017-08-24 10:43:09
阅读次数:
168
Farmer John has gone to town to buy some farm supplies. Being a very efficient man, he always pays for his goods in such a way that the smallest numbe ...
分类:
其他好文 时间:
2017-08-16 21:39:45
阅读次数:
234
Give you a tree with N vertices and N‐ 1 edges, and then ask you Q queries on “which vertex is Y's son that has the smallest number and which vertex i ...
分类:
其他好文 时间:
2017-08-16 20:27:49
阅读次数:
194