码迷,mamicode.com
首页 >  
搜索关键字:empty    ( 6963个结果
UVA571 - Jugs(数论)
UVA571 - Jugs(数论) 题目链接 题目大意:给你A和B的水杯,给你三种操作:fill X:把X杯里面加满水。empty X:把X杯中的水清空。pour X Y 把X的水倒入Y中直到一方满或另一方空为止。然后要求你得到C的水量,给出实现步骤。 解题思路:因为A,B互质,n属于【1,B - 1】则n%B=n。那么n?A%B= n%B?A%B = n?R,因为AB互...
分类:其他好文   时间:2014-11-09 12:39:45    阅读次数:119
EL表达式运算符
语法:${运算表达式},EL表达式支持如下运算符1.empty运算符:检查对象是否为null或“空”.2.二元表达式:${user!=null?user.name : “”} .3.[ ] 和 . 号运算符. 1 2 3 4 5 6 7 el表达式运算符 8 9 1...
分类:其他好文   时间:2014-11-08 18:00:57    阅读次数:161
django源码解析之 BooleanField (二)
class BooleanField(Field): empty_strings_allowed = False default_error_messages = { 'invalid': _(u"'%s' value must be either True or Fals...
分类:其他好文   时间:2014-11-08 07:02:30    阅读次数:256
[leetcode]Unique Paths II
问题描述: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively in ...
分类:其他好文   时间:2014-11-07 20:56:34    阅读次数:272
C#数据结构-树 data Structure Tree
树(Tree)是n(n>=0)个相同类型的数据元素的有限集合。树中的数据元素叫结点(Node)。n=0的树称为空树(Empty Tree);对于n>0的任意非空树T有: 1.有且只有一个特殊的结点称为树的根(Root)结点,根没有前驱结点。 2.若n>1,则除根结点外,其余结点被分成了m(m>0)个互不相交的集合T1,T2,T3,...Tm,其中每个集合Ti(1 由树的定义可知,...
分类:Windows程序   时间:2014-11-07 20:48:25    阅读次数:299
queue/priority_queue笔记
需要头文件#include queue q;q.push(12);while(!q.empty() ){cout q; //默认按照从大到小排序q.push(1);q.push(2);while(!q.empty() ){cout , greater > q; //按照从小到大的顺序q.push.....
分类:其他好文   时间:2014-11-07 00:55:54    阅读次数:132
HttpGet和HttpPost请求
internal static string HttpPost(string Url, string postDataStr) { string retString = string.Empty; try { ...
分类:Web程序   时间:2014-11-06 16:56:20    阅读次数:227
Unique Paths II
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:其他好文   时间:2014-11-06 16:53:40    阅读次数:145
LeetCode[string]: Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defin...
分类:其他好文   时间:2014-11-06 14:57:52    阅读次数:150
PHP负数判空
2014年11月6日 10:08:091 $a = -1;2 $b = '-1';3 4 $c = empty($a);5 $d = empty($b);6 7 var_dump($c, $d); // bool(false) bool(false)-1 和 '-1' 都不为空
分类:Web程序   时间:2014-11-06 10:41:01    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!