码迷,mamicode.com
首页 >  
搜索关键字:b. ohana cleans up    ( 7828个结果
poj3087--Shuffle'm Up(小模拟)
Shuffle'm Up Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5983   Accepted: 2809 Description A common pastime for poker players at a poker table is to shuf...
分类:其他好文   时间:2014-10-30 20:59:47    阅读次数:211
matlab 直方图均衡化
原理:直方图均衡化首先是一种灰度级变换的方法:原来的灰度范围[r0,rk]变换到[s0,sk]变换函数为:s=T(r);为便于实现,可以用查找表(look-up table)的方式存储,即:原始的灰度作为查找表的索引,表中的内容是新的灰度值。其次,直方图均衡化是图像增强的一种基本方法,可提高图像的对...
分类:其他好文   时间:2014-10-30 20:55:22    阅读次数:358
Hdu2855Fibonacci Check-up矩阵
转个图。或者打表找的规律是 g[n] = 3*g[n-1] - g[n-2];构造个 3 -1 的矩阵然后搞下就好了。 1 0 #include #include #include #include typedef long long LL;using namespace std;LL mod...
分类:其他好文   时间:2014-10-30 20:47:17    阅读次数:245
leetcode Rotate Image
题目:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?在原址上进行将矩阵旋转90度。如...
分类:其他好文   时间:2014-10-30 19:03:07    阅读次数:208
UVALive 6531 Go up the ultras 单调栈+RMQ
题目链接:点击打开链接 题意: 给定n座山 下面n个数字表示n座山的高度 若这座山u合法,则要满足: 1、若u的左边存在比u高的山,设v是u左边距离u最近的且严格比u高的山,在[v,u]之间至少有一座山x,使得x和u的高度差>=15000 2、右边也同理。 同时满足1、2的情况则算合法。 问: 输出所有合法的山。 思路: 求距离某个点最近的山就是维护一个单调栈,然后给...
分类:其他好文   时间:2014-10-30 00:13:47    阅读次数:204
BZOJ1584: [Usaco2009 Mar]Cleaning Up 打扫卫生
Description有 N头奶牛,每头那牛都有一个标号Pi,1 2 3 #include 4 5 #include 6 7 #include 8 9 #include10 11 #include12 13 #include14 15 #include16 17 #include18 19...
分类:其他好文   时间:2014-10-29 19:20:03    阅读次数:368
[LeetCode]Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra space? A straight forward solution using O(m...
分类:其他好文   时间:2014-10-29 17:02:17    阅读次数:206
桥接 brctl
把eth0和wlan0桥接在一起作用:测试wlan0网卡的并发性能 两个网卡桥接后把linux主机模拟成一个“无线路由交换机”Vi br0.sh#!/bin/bashifconfig eth0 0.0.0.0 up #取消eth0的ipifconfig wlan0 0.0.0.0 upbrctl a...
分类:其他好文   时间:2014-10-29 14:44:05    阅读次数:180
mongodump and mongorestore of mogodb
The another tool will be mentioned in this blog, namely mongodump and mongorestore.  General speaking, it’s very useful to back up or to restore the data of database or collection by means of mongodu...
分类:数据库   时间:2014-10-29 02:00:22    阅读次数:224
ASP.NET下载远程图片保存到本地的方法、保存抓取远程图片
ASP.NET下载远程图片保存到本地的方法、保存抓取远程图片2012-05-16 11:25:51 我来说两句 收藏我要投稿以下介绍两种方法:1.利用WebRequest,WebResponse 类WebRequest wreq=WebRequest.Create("http://up.2cto.c...
分类:Web程序   时间:2014-10-29 00:12:15    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!