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
咱们做网站的,用户体验那是相当重要的,比如12306抢票需要填写身份证,如果不空格,密密麻麻的给我一种很压抑的感觉,而且也不容易核对信息是否填写正确,所以我就写了一个利用Js实现填写身份证号、手机号、准考证号等信息自动空格的效果。为了方便,自已定义的一个简单的get()方法和trim()方法,代.....
分类:
移动开发 时间:
2014-05-23 23:11:16
阅读次数:
493
题意:每次筛三个骰子面分别为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
1.采集去除链接[Copy to
clipboard]CODE:{dede:trim}]*)>([^]*)>([^{/dede:trim}这样做会去掉与之间的字符!这样整个文章就少了部分字符,不完整了!后来我多次测试,总算找到了正确的使用方法!如下:{dede:trim}]*)>{/dede:tri...
分类:
其他好文 时间:
2014-05-23 07:07:02
阅读次数:
231
Little Mammoth
Time Limit: 5 Seconds
Memory Limit: 32768 KB Special Judge
It is well known that mammoths used to live in caves. This is a story of a little mammoth who lived in a ca...
分类:
其他好文 时间:
2014-05-22 22:49:43
阅读次数:
495
??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他好文 时间:
2014-05-22 12:24:38
阅读次数:
236
PHP字符串常用的操作函数strval 把变量转换成字符串strrev 反转字符串trim
去掉字符串首尾半角空格ltrim 去掉左边半角的英文空格rtrim 去掉右边半角的英文空格strlen 取字符串的长度 long lengthsubstr
截取子字符串strrchr 查找字符在字符串中最后出...
分类:
Web程序 时间:
2014-05-21 23:25:34
阅读次数:
423
Evolution is a long, long process with extreme complexity and involves many species. Dr. C. P. Lottery is currently investigating a simplified model of evolution: consider that we haveN (2
N N -1, a...
分类:
其他好文 时间:
2014-05-21 13:43:27
阅读次数:
444
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1083题意差不多是这样,给你n条线的长度,让你染色,每次只能染2个长度单位,让你先染,问是否能赢的胜利其实这题和取石子的那题(ECNU
1328 Stripes)差不多,...
stringdeptId=Request.Form["depts"].Trim();Html.DropDownList()赋默认值:页面代码如下: list =
new List { new SelectListItem { Text = "启用", Value = "0",Selected = ....
分类:
其他好文 时间:
2014-05-19 18:59:16
阅读次数:
269