题目:http://www.lydsy.com:808/JudgeOnline/problem.php?id=1264分析:考虑做一般的LCS的时候,更新结果的条件是a[i]==b[j]时候于是可以先记下a数组中1~n每个数字出现的5个位置然后依次扫描b[i],b[i]可以和对应a中数字的5个位置更...
分类:
编程语言 时间:
2015-01-19 00:10:43
阅读次数:
173
#!/bin/sh
function conv() {
if [ "$(expr match "$1" ".*\.java$")" != "0" ]; then
echo "Converting $1 ..."
iconv -f utf-8 -t gbk $1 > $1.temp
rm $1
mv $1.temp $1
else
echo "Skip $1"
fi
}
...
分类:
编程语言 时间:
2015-01-18 21:11:19
阅读次数:
266
(1)文件的目录
(2)各文件的代码:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2015-01-18 18:36:59
阅读次数:
246
(1)目录结构
(2) 布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
androi...
分类:
移动开发 时间:
2015-01-18 14:24:30
阅读次数:
187
本文主要关注Magento的standard路由对象中的Mage_Core_Controller_Varien_Router_Standard::match()方法,该方法在前端控制器中调用,主要用来检查当前请求的URL地址,并决定匹配的模块,控制器以及方法,并且最后调用控制器分发该方法。对于在上篇...
分类:
其他好文 时间:
2015-01-18 07:05:06
阅读次数:
355
(1)布局文件,一个简单的登录文件;
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:la...
分类:
移动开发 时间:
2015-01-17 20:56:16
阅读次数:
273
(1)在布局文件中创建一个listview:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
androi...
分类:
移动开发 时间:
2015-01-17 15:16:03
阅读次数:
229
(1)布局文件:用于弹出菜单的处罚button:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2015-01-17 15:14:34
阅读次数:
199
//对每个象素点进行匹配
static int icvMatchTest( double* src_pixel, int nChannels, int* match,
const
CvGaussBGPoint* g_point,
const
CvGaussBGStatModelPara...
分类:
其他好文 时间:
2015-01-17 10:01:54
阅读次数:
326
(1)布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height...
分类:
移动开发 时间:
2015-01-16 19:18:58
阅读次数:
178