本月博客排行
-
第1名
Xeden -
第2名
fantaxy025025 -
第3名
bosschen - paulwong
- johnsmith9th
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - gengyun12
- wy_19921005
- vipbooks
- e_e
- benladeng5225
- wallimn
- ranbuijj
- javashop
- jickcai
- fantaxy025025
- zw7534313
- qepwqnp
- robotmen
- 解宜然
- ssydxa219
- sam123456gz
- zysnba
- sichunli_030
- tanling8334
- arpenker
- gaojingsong
- xpenxpen
- kaizi1992
- wiseboyloves
- jh108020
- xyuma
- ganxueyun
- wangchen.ily
- xiangjie88
- Jameslyy
- luxurioust
- mengjichen
- lemonhandsome
- jbosscn
- nychen2000
- zxq_2017
- lzyfn123
- wjianwei666
- forestqqqq
- ajinn
- siemens800
- hanbaohong
- 狂盗一枝梅
- java-007
- zhanjia
- 喧嚣求静
- Xeden
最新文章列表
nyoj306 dfs+二分搜索
题目大意:中文题。
算法思路:这种思路确实对我来说很新颖,我也是看了解题报告才知道。说白了,二分最小值和最大值的差,如果这个差值能够从起点走到终点,则说明这个差值是可行的,那我们就在减小,二分左半部分,否则二分右半部分。
#include<iostream>
#include<cstring>
#include<cstdio>
using nam ...
给出一个顺序文件,它最多包含40亿个随机排列的32位整数 问题:找出一个不在文件中的32位整数。
package com.myway.study;
import java.util.ArrayList;
import java.util.List;
/**
* 给出一个顺序文件,它最多包含40亿个随机排列的32位整数
问题:找出一个不在文件中的32位整数。
* User: zhangyong
* Date: 14-5-17
* Time ...
【最大流+dinic+二分枚举】北大 poj 3189 Steady Cow Assignment
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2012 panyanyany All rights reserved.
URL : http://poj.or ...
【二分】LOJ 1048 Conquering Keokradong
KIDx 的解题报告
题目链接:http://lightoj.com/volume_showproblem.php?problem=1048
题意:给n+1个数,要你通过合并使其变成k+1个数,要求令这k+1个数的最大值最小,另外输出时尽量让前面的大
#include <iostream>
using namespace std;
#define M 1005
...
【二分】LOJ 1088 Points in Segments
KIDx 的解题报告
题目链接:http://lightoj.com/volume_showproblem.php?problem=1088
题意:给一串单调递增的数,输入x, y,问>=x且<=y的数有多少个?
二分要点:设初始下界为l,上界为r 二分进行条件:while (l < r)
①要找单调区间中尽量小的符合条件的量,则mid的可达范围应该是右 ...
【二分图+最大匹配】北大 poj 1274 The Perfect Stall
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最大匹配】北大 poj 2724 Purifying Machine
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最小路径覆盖】北大 poj 3020 Antenna Placement
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分】HDU 2141 Can you find it?
KIDx 的解题报告
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2141
题意很简单
很好的一道二分+降维思想的题!
#include <iostream>
#include <algorithm>
using namespace std;
#define eps 1e-8
#define PI 3.1415 ...
【二分图+最大匹配】北大 poj 2446 Chessboard
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最小路径覆盖+注释】北大 poj 2060 Taxi Cab Scheme
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org ...
【二分图+最大独立集】北大 poj 2771 Guardian of Decency
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最大匹配】北大 poj 3041 Asteroids
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
杭电 hdu 1507 Uncle Tom's Inherited Land*(二分图,最大匹配)
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...
杭电 hdu 1528 Card Game Cheater (二分图,最大匹配)
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...