码迷,mamicode.com
首页 >  
搜索关键字:one discrete length    ( 47106个结果
[转载]爱上一个给予你正能量的人
You Should Fall In Love With Someone Who InspiresYouFEB. 5, 2014BySTEPHANIE ALTHOFThere’s one trait that I continuously find myself coming back to whe...
分类:其他好文   时间:2014-05-24 07:45:20    阅读次数:264
ZOJ 3593 One Person Game
One Person GameTime Limit:2 Seconds Memory Limit:65536 KBThere is an interesting and simple one person game. Suppose there is a number axis under your...
分类:其他好文   时间:2014-05-24 07:02:17    阅读次数:310
对Textbox的值转换为带千位符和小数的Decimal字符串
以下Function可以用于textbox的KeyUp事件:var numberChars = "1234567890";function isDecimal(item) { var obj = $(item); if (obj.length > 0) { if ($(ob...
分类:其他好文   时间:2014-05-24 05:30:56    阅读次数:204
Matlab使用心得
1、.*和*的区别.*只能用于两个同型矩阵相乘,且是相对应的元素做乘法运算,其运算规则和我们线性代数里的乘法规则是不一样的;而*用于两个矩阵相乘,如mxn,nxk两个矩阵相乘,它的运算规则和线性代数里的一样。2、reshape函数利用向量创建矩阵3、length()函数获取一维向量长度,若输入为矩阵...
分类:其他好文   时间:2014-05-24 05:13:30    阅读次数:356
leetcode:Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:其他好文   时间:2014-05-24 04:45:39    阅读次数:245
Base62
0); return $output; } public function decode($input) { $length = strlen($input); $number = 0; $...
分类:其他好文   时间:2014-05-24 02:46:45    阅读次数:319
LeetCode:Longest Substring Without Repeating Characters(最长不重复子串)
题目链接Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter...
分类:其他好文   时间:2014-05-24 02:15:57    阅读次数:291
vim摘要
The "." command is one of the most simple yet powerful commands in Vim. Itrepeats the last change. For instance, suppose you are editing an HTML filea...
分类:其他好文   时间:2014-05-23 22:52:50    阅读次数:372
ZOJ 3329 - One Person Game
题意:每次筛三个骰子面分别为k1,k2,k3,如果三个骰子的值分别为a,b,c则得分置0,否则得到分数加上三个骰子的值的和,如果得分大于等于n则结束游戏。设E[i]表示当前得到i分时结束游戏的期望。则E[i]=sum{Pk*(E[i+k]+1)|k为三个骰子可能取得的分数且不包括a,b,c这种情况}...
分类:其他好文   时间:2014-05-23 11:48:09    阅读次数:303
javascript 数组
var arr = [1,2,2,3,3,4,4,5,1];function getRepeat( arr ){ var len = arr.length, map={}; for( var i = 0;i<len;i++ ){ if(!map[arr[i]]...
分类:编程语言   时间:2014-05-23 10:39:49    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!