码迷,mamicode.com
首页 >  
搜索关键字:do    ( 12356个结果
HDU4902:Nice boat(线段树lazy)
Problem Description There is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although the king used to be wise and beloved by his peop...
分类:其他好文   时间:2014-08-01 20:00:22    阅读次数:287
【LeetCode】Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNode {...
分类:其他好文   时间:2014-08-01 19:53:32    阅读次数:222
mysql流程控制、自定义函数、存储过程
修改结束符dilimiter $$分支 if条件then语句 elseif条件then语句 else 语句 endif;循环 while条件do 循环体 endwhile;用户自定义变量 典型的变量:字段名就是变量,还有一些系统内置的变量 用户自定义变量需要使用@作为变量名的前缀,...
分类:数据库   时间:2014-08-01 18:54:12    阅读次数:291
VIM 一键编译
"单个文件编译map :call Do_OneFileMake()function Do_OneFileMake() if expand("%:p:h")!=getcwd() echohl WarningMsg | echo "Fail to make! This file i...
分类:其他好文   时间:2014-08-01 18:43:22    阅读次数:271
iOS开发Swift篇—(六)流程控制
iOS开发Swift篇—(六)流程控制一、swift中的流程控制Swift支持的流程结构如下:循环结构:for、for-in、while、do-while选择结构:if、switch注意:这些语句后面一定要跟上大括号{},在C语言中不是必须的说明:跟C语言对比,用法基本一样的有:for、while、...
分类:移动开发   时间:2014-08-01 18:36:42    阅读次数:308
Piggy-Bank(完全背包变形)
Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). Th...
分类:其他好文   时间:2014-08-01 16:08:02    阅读次数:281
jsp 表单提交,request.getRequestDispatcher方法 及 response.sendRedirect 路径问题
在jsp页面中,等提交表单数据时,最好用觉得路径。写法如下:/do_login.jsp" method="post">其中 request.getContextPath() 方法是取得当前项目的根目录位置。这种用法叫做 “绝对路径” 使用绝对路径的好处是不太容易出错。缺点是目标路径字符串容易写的很长...
分类:Web程序   时间:2014-08-01 15:29:51    阅读次数:344
Linux Windows 定时修改系统时间
#/bin/bash # beforTime=02:00 afterTime=08:00 beforTime=$(echo$beforTime|awk-F:{‘print$1‘}) afterTime=$(echo$afterTime|awk-F:{‘print$1‘}) Flag=0 whiletrue do sleep2s echo"date:$(date+"%Y-%m-%d%H:%M:%S")" if[$(date+%H)-eq$beforTime];then CurDate=$(date+%d) ..
分类:Windows程序   时间:2014-08-01 13:56:22    阅读次数:283
HDU4901:The Romantic Hero(DP)
Problem Description There is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although the king used to be wise and beloved by his peop...
分类:其他好文   时间:2014-08-01 13:51:31    阅读次数:224
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-08-01 12:49:41    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!