码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
SRM 628 DIV2 1000 CandleTimerEasy 状态压缩+DFS
题意:给你一个树型蜡烛,你可以从1个或多个叶子开始点蜡烛,问你能使蜡烛烧完以后能得到时间的个数。解题思路:状态压缩枚举DFS,解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #line 7 "CandleTimerEa...
分类:其他好文   时间:2014-11-03 22:30:46    阅读次数:286
210 - Concurrency Simulator(WF1991, deque, 模拟)
题目有点长,理解题花了不少时间粘下别人的翻译~你的任务是模拟n个程序(按输入顺序编号为1~n)的并行执行。每个程序包含不超过25条语句,格式一共有5种: var=constant(赋值); print var(打印); lock; unlock; end。变量用单个小写字母表示,初始值为0...
分类:其他好文   时间:2014-11-03 22:14:33    阅读次数:558
LeetCode[Linked List]: Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked ...
分类:其他好文   时间:2014-11-03 21:02:22    阅读次数:182
verilog behavioral modeling--sequential and parallel statements
1.Sequential statement groups the begin-end keywords: .group several statements togethor .cause the statements to be evaluated sequentially(one at a t...
分类:其他好文   时间:2014-11-03 20:52:59    阅读次数:185
学习笔记之05-第一个OC的类
一、语法简介1.类在Java中,我们用1个.java文件就可以描述清楚一个类;在OC中,一般用2个文件来描述一个类:1> .h:类的声明文件,用于声明成员变量、方法。类的声明使用关键字@interface和@end。注意:.h中的方法只是做一个声明,并不对方法进行实现。也就是说,只是说明一下方法名、...
分类:其他好文   时间:2014-11-03 19:10:53    阅读次数:217
[Erlang]前人挖坑,后人还要进坑?(1)
1. 保护式(guard)中如果出错,不会报错,只会返回false!case 1=:1 of true when not erlang:length(t) =:= 1 orelse true -> ok; _ -> error end.Result is:   error保护式中对t (atom) 求length会出错,本应crash...
分类:其他好文   时间:2014-11-03 17:45:47    阅读次数:410
iOS开发几种隐藏键盘方法
摘要:iOS开发里键盘是经常需要打交道的地方,下面为大家带来几种隐藏键盘的方法。 一、隐藏自身软键盘 当对于有多个UITextField控件都想通过点击“Return”来隐藏自身软键盘的情况,这时的最好办法是使用Did End on Exit事件。在点击软键盘右下角的“Return”按钮后,会触发该事件。 该事件有一个sender参数表示当前文本框,这样便可以编写一个通用...
分类:移动开发   时间:2014-11-03 10:13:57    阅读次数:267
nyoj19(排列组合next_permutation(s.begin(),s.end()))
题目意思: 从n个数中选择m个数,按字典序输出其排列。 http://acm.nyist.net/JudgeOnline/problem.php?pid=19 例:    输入:n=3,m=1; 输出:1 2 3    输入:n=4,m=2; 输出:12 13 14 21 23 24 31 32 34 41 42 43 题目分析: 此题为全排列的前m个数,只需对n个数...
分类:其他好文   时间:2014-11-02 21:05:06    阅读次数:269
ArrayList
ArrayList相当于STL里面的Vector。 {CSDN:CODE:505358} 下面是成员方法。 Method Summary  boolean add(E e)              Appends the specified element to the end of this list. ...
分类:其他好文   时间:2014-11-02 19:42:48    阅读次数:230
Oracle 时间差计算
两个Date类型字段:START_DATE,END_DATE,计算这两个日期的时间差(分别以天,小时,分钟,秒,毫秒):天:ROUND(TO_NUMBER(END_DATE - START_DATE))小时:ROUND(TO_NUMBER(END_DATE - START_DATE) * 24)分钟...
分类:数据库   时间:2014-11-02 19:26:43    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!