本月博客排行
-
第1名
龙儿筝 -
第2名
johnsmith9th -
第3名
wy_19921005 - zysnba
- sgqt
- lemonhandsome
年度博客排行
-
第1名
宏天软件 -
第2名
青否云后端云 -
第3名
龙儿筝 - gashero
- wallimn
- vipbooks
- benladeng5225
- wy_19921005
- fantaxy025025
- qepwqnp
- e_e
- 解宜然
- zysnba
- ssydxa219
- sam123456gz
- javashop
- arpenker
- tanling8334
- kaizi1992
- xpenxpen
- gaojingsong
- wiseboyloves
- xiangjie88
- ranbuijj
- ganxueyun
- sichunli_030
- xyuma
- wangchen.ily
- jh108020
- lemonhandsome
- zxq_2017
- jbosscn
- Xeden
- luxurioust
- lzyfn123
- zhanjia
- forestqqqq
- johnsmith9th
- ajinn
- nychen2000
- wjianwei666
- hanbaohong
- daizj
- 喧嚣求静
- silverend
- mwhgJava
- kingwell.leng
- lchb139128
- lich0079
- kristy_yy
最新文章列表
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 ...