码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
ZOJ 2112 Dynamic Rankings(主席树の动态kth)
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2112The Company Dynamic Rankings has developed a new kind of computer that is no lon...
分类:其他好文   时间:2014-08-02 01:37:22    阅读次数:582
form表单中method的get和post区别
一、问题的提出注意到表单中action:getPostServlet/getPost.do?param4=param4这个action带有一个参数param4,如果用get方法提交,后台无法接收到这个参数;如果用post方法提交,后台就可以接收到这个参数。问题原因的简单解释:用get方法提交的url...
分类:其他好文   时间:2014-08-01 22:41:52    阅读次数:216
windows的ping测试脚本
批量ping测试的批处理脚本remping测试,需要一个ip.txt的附件提供ip列表 @echooff for/f%%iin(ip.txt)do( ping-n2-w300%%i>nul ifERRORLEVEL1(echo%%iunreachable)elseecho%%ireachable ) pause两个ping包,通一个就算reachable,两个都不通输出unreachable
分类:Windows程序   时间:2014-08-01 20:04:32    阅读次数:452
HDU 3782 xxx定律
/* 中文题意: 中文翻译: 题目大意: 解题思路:当n不为1的时候,用while循环,直到出现n为止,while循环很适合循环次数不确定时使用。 难点详解:对位运算的理解 关键点:位运算 解题人:lingnichong 解题时间:2014/08/01   15:41 解题感受:c语言学多了后,在参加竞赛时,取余的话都用n&1=0为偶数,n&1=1为奇数。 */ ...
分类:其他好文   时间:2014-08-01 20:01:42    阅读次数:170
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!