dseg segment str_source db "HelloWorld$"str1 db 20 dup(0)str2 db 20 dup(0)int_caption db 0int_lower db 0dseg ends cseg segme...
分类:
其他好文 时间:
2014-12-25 16:20:15
阅读次数:
203
Given a matrix of lower alphabetsand a dictionary.Find all words in the dictionary that can be found in the matrix. A word can start from any position...
分类:
其他好文 时间:
2014-12-25 06:35:39
阅读次数:
169
题意:
给n个数,求它的最长下降子序列长度和数量。
分析:
dp,计数的时候要避免重复计数。
代码:
//poj 1952
//sep9
#include
using namespace std;
const int maxN=5012;
int a[maxN];
int dp[maxN];
int num[maxN];
int main()
{
int i,j,n,ans=0,an...
分类:
其他好文 时间:
2014-12-24 14:46:55
阅读次数:
182
Lower--转换为小写upper--转换为大写Initcap--首字母大写concat--连接字符substr--截取字符length/length--获取字符串长度(字节长度)instr--指定字符所在的位置lpad/rpad--左/右填充trim--去除字符串两端制定字符replace--替换...
分类:
数据库 时间:
2014-12-23 16:56:03
阅读次数:
214
如何从文件中读取300个汉字?看起来很简单,但很容易掉坑里了。一开始我这么写:1 try:2 fd = codecs.open(os.path.join(settings.TEXT_CONTENT_DIR,channel_name.lower(), article_id), ...
分类:
编程语言 时间:
2014-12-20 23:27:37
阅读次数:
356
通过这题我才知道lower_bound(set),和set::lower_bound完全他妈不一样。。前者O(n)后者O(logn),去他妈的。。。。思路: 另要被覆盖的线段为a[i],覆盖它的先端为b[i] 对要被覆盖的线段的左端点及a[i].lef进行离散化,然后从小到大扫描过去,如果b[i.....
分类:
其他好文 时间:
2014-12-18 16:48:35
阅读次数:
246
第三章单行函数Oracle基础笔记二1.单行函数:操作数据对象接受参数返回一个结果只对一行进行变换每行返回一个结果可以转换数据类型可以嵌套参数可以是一列或一个值2.大小写控制函数:LOWER(‘SQLCourse‘) sqlcourseUPPER(‘SQLCourse‘) SQLCOURSEINITCAP(‘SQLCourse‘) Sq..
分类:
数据库 时间:
2014-12-18 06:55:42
阅读次数:
263
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.首先解释一下什么是anagrams:在不考虑顺序的情况下,...
分类:
其他好文 时间:
2014-12-13 15:08:14
阅读次数:
154
Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, 1, 3, 50, 75],...
分类:
其他好文 时间:
2014-12-13 06:07:01
阅读次数:
223
2014-12-09 BaoXinjian一、字符函数1. LOWER (strexp) - 返回字符串,并将所有的字符小写.select lower('ABCDE') from dual2. UPPER (strexp) 返回字符串,并将所有的字符大写.select upper('abcdf') ...
分类:
数据库 时间:
2014-12-12 14:40:55
阅读次数:
293