码迷,mamicode.com
首页 >  
搜索关键字:most water    ( 6947个结果
hdoj 4183 Pahom on Water 【基础最大流】
题目:hdoj 4183 Pahom on Water 题意:题目有点长,读懂了就是个水的最大流,每次从789开始到400,走的话必须是两个圆相交而且频率递增的,每个点只走一次,求有没有满足这样条件的。 分析:题目读懂就比较水了。直接按照题目意思建图,初始点和结束点容量为2,其他点只走一次容量为1,然后求最大流。 AC代码: #include #include ...
分类:其他好文   时间:2014-08-24 11:44:42    阅读次数:195
Lucky
Jason MarzDo you hear me ,I'm talking to you,Across the water across the deep blue ocean,under the open sky,ou my baby I'm trying.Boy I hear you in my...
分类:其他好文   时间:2014-08-23 12:30:50    阅读次数:211
Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array A = [1,1,1,2,2,3],Your function should r...
分类:其他好文   时间:2014-08-23 11:18:00    阅读次数:167
URAL 1748. The Most Complex Number 反素数
题目来源:URAL 1748. The Most Complex Number 题意:求一个小于等于n的因子最多的数 思路:搜索+剪枝 #include #include using namespace std; typedef unsigned __int64 LL; LL prime[16] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53...
分类:其他好文   时间:2014-08-22 21:12:09    阅读次数:228
apache+mysql5.0
安装apache[root@centos64x64ctyun]#tarzxfhttpd-2.2.17.tar.gz[root@centos64x64ctyun]#cdhttpd-2.2.17[root@centos64x64httpd-2.2.17]#./configure--prefix=/application/apache2.2.17--enable-deflate--enable-expires--enable-headers--enable-modules=most--enable-so--wi..
分类:数据库   时间:2014-08-22 18:10:59    阅读次数:233
leetcode之Container With Most Water 和Trapping Rain Water
Container With Most Water   Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line...
分类:移动开发   时间:2014-08-22 16:17:59    阅读次数:208
POJ1401-Factorial
DescriptionThe most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this ...
分类:其他好文   时间:2014-08-22 14:13:58    阅读次数:278
Poj2886Who Gets the Most Candies?线段树
约瑟夫环用线段数搞,一脸搞不出来的样子。反素数,太神了,先打表,然后就可以 O(1)找到因子数最多的。ps:哎。这题也是看着题解撸的。#include #include #include #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-08-22 00:06:25    阅读次数:231
hdu 4974 A simple water problem(数学题)
hdu 4974 A simple water problem(数学题)...
分类:其他好文   时间:2014-08-21 22:56:45    阅读次数:481
HDU 4974 A simple water problem(贪心)
HDU 4974 A simple water problem 题目链接 签到题,很容易贪心得到答案是(sum + 1) / 2和ai最大值的最大值 代码: #include #include #include using namespace std; const int N = 100005; typedef long long ll; int t, n; ll...
分类:其他好文   时间:2014-08-21 22:53:25    阅读次数:304
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!