Edge Detection
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18826
Accepted: 4359
Description
IONU Satellite Imaging, Inc. records and stores very large ...
分类:
其他好文 时间:
2015-05-18 16:43:01
阅读次数:
135
目录目录
思路
思路
AC代码思路Design a data structure that supports the following two operations:
void addWord(word)
bool search(word)
search(word) can search a literal word or a regular expression string cont...
分类:
其他好文 时间:
2015-05-18 16:44:38
阅读次数:
156
先放上效果
惊现塞拉酱
算法是Weta Digital根据siggraph2003的论文加以改进,改进之前使用的是Kajiya and Kay’s 模型,它能量不守恒,也就是说不是基于物理的,不准确
电镜下真实头发丝纤维的照片,我们发现上面有很多重叠的角质层叫做毛小皮也叫毛鳞片,他们相对根部的倾斜角度大约为3°,近似模型如下图
头发纤维的模型...
分类:
编程语言 时间:
2015-05-18 16:42:40
阅读次数:
224
一、第一种错误:
错误日志大体是这样:The project is using an unsupported version of the Android Gradle plug-in
(0.9.2)
问题分析:从英文意思上看是说,你的工程正在使用不支持的gradle版本。是因为的androidStudio版本过高,对于低版本的gradle插件不再支持导致的。那问题怎么解决呢,Androi...
分类:
移动开发 时间:
2015-05-18 16:45:14
阅读次数:
176
分析:dp[i][j][k]表示长度为i的串含j个相邻的1并且以k为结尾的种数。状态转移方程:dp[i][j][0]=dp[i-1][j][0]+dp[i-1][j][1];dp[i][j][1]=dp[i-1][j][0]+dp[i-1][j-1][1];边界dp[1][0][0]=dp[1][0][1]=1;。
#include
using namespace std;
int dp[10...
分类:
其他好文 时间:
2015-05-18 16:44:06
阅读次数:
148
最近有些忙,先把最小生成树的代码挂上,有时间将讲解补上。
在这里两个函数:Prim和Kruskal函数,分别是这两个算法的主算法代码。使用的图存储方式是邻接矩阵。
#include
#include
#include
using namespace std;
#define MAX 100
#define INT_MAX 10000
#define min(x,y)(x<y?x:y)
typ...
分类:
其他好文 时间:
2015-05-18 16:43:55
阅读次数:
98
Lecture4:Decomposition and abstraction through functions;introduction to recursion 函数分解抽象与递归Functions 函数
block up into modules 分解为模块
suppress detail 忽略细节
例子:鸡兔同笼 回文字符串 Fibonacci...
分类:
编程语言 时间:
2015-05-18 16:40:54
阅读次数:
142
物联网金融...
分类:
Web程序 时间:
2015-05-18 16:42:34
阅读次数:
107
网址:https://leetcode.com/problems/container-with-most-water/
题意:
找两条纵深线,然后利用x坐标来计算容器面积.
分析:
先找最远的两头,然后往中间收缩,
长变小了,高变长才能使面积可能更大.
所以就是找更长的...
解法:
如果height[left]
反之,同理.
代码:
https://github.com/L...
分类:
其他好文 时间:
2015-05-18 16:43:02
阅读次数:
115
dp[0][i][j]表示以i为根节点步行j步,且最终回到i,可以得到的最大苹果数量。dp[1][i][j]表示最终不回到i可以得到的最大苹果数量。
#include
#include
#include
#include
#include
using namespace std;
#define N 221
#define inf 0x7f7f7f7f
int dp[2][...
分类:
其他好文 时间:
2015-05-18 16:41:58
阅读次数:
118
求取圆形区域内的平均灰度值...
分类:
其他好文 时间:
2015-05-18 16:41:06
阅读次数:
155
这道题的dp数组含义还是很不好想的,一开始我根据状态量来枚举,要枚举三重循环,必然超时。后来参考别人的做法dp[i][j]表示在i件物品中选j对所需的最小疲劳值,相信几乎所有题解都是这么写的,你们也看烦了,那我就说说是什么意思吧 :由于这些东西的重量可以打乱,那我们不妨排序,则肯定拿相邻的两件最好,但是到底拿拿两件呢?(一件物品可以有两个邻居) ,所以在拿当前这一对时就发生了决策,可以选择不拿这一...
分类:
其他好文 时间:
2015-05-18 16:40:05
阅读次数:
127
深度学习大火,将各个数据集的state of the art不断地刷新,到了开源代码一放出,有种全民皆可刷排名的节奏。
不过可别把刷数据想的那么简单,不然大家去哪发paper,怎么混饭吃= = 但是我不想发paper就想占坑刷数据怎么办,看到cifar10都尼玛刷到了95%了,我这用caffe自带的小demo才得出78%的结果,caffe你确定不是在骗我?
caffe确实没在骗...
分类:
其他好文 时间:
2015-05-18 16:40:23
阅读次数:
152
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 100000000
using namespace std;
int n,T,m1,m2;
int t[100];
int A1[100];
int ...
分类:
其他好文 时间:
2015-05-18 16:41:30
阅读次数:
175
1.Error:The project is using an unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.2.3. 2.Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandlin...
分类:
移动开发 时间:
2015-05-18 16:40:19
阅读次数:
292
在openwrt上运行的是busybox,功能和一般linux发行版自带的 bash shell 差不多。
但是针对嵌入式系统做了很多的裁剪,语法上也和 bash shell 有一点差异。
本文主要记录的是 在脚本中声明和调用函数的过程。...
分类:
其他好文 时间:
2015-05-18 16:41:37
阅读次数:
152
1、JDBC是什么? Java Database Connectivity:Java访问数据库的解决方案 希望用相同的方式访问不同的数据库,以实现与具体数据库无关的Java操作界面 JDBC定义一套标准接口,即访问数据库的通用API,不同的数据库厂商根据各自数据库的特点去实现这些接口2、JDB...
分类:
数据库 时间:
2015-05-18 16:39:47
阅读次数:
153