码迷,mamicode.com
首页 >  
搜索关键字:first firstordefault    ( 14152个结果
Hive基本命令整理
创建表: hive> CREATE TABLE pokes (foo INT, bar STRING); Creates a table called pokes with two columns, the first being an integer and the other a string....
分类:其他好文   时间:2014-07-22 22:50:54    阅读次数:262
(CF#257)B. Jzzhu and Sequences
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109?+?7). Input The first line contains two int...
分类:其他好文   时间:2014-07-22 22:49:33    阅读次数:296
shell中函数定义及使用
#!/bin/sh #函数要定义在使用之前 function?lession(){ ???echo?"this?is?a?function" } lession function?lession2(){ ???echo?"this?is?lession2" ???echo?"The?first?is?$1" ???e...
分类:其他好文   时间:2014-07-22 09:13:36    阅读次数:141
hdu 1671 Phone List
#include #include #include #define ZERO 0 const int FIRST_CHAR = '0'; char num[11111][20] ; typedef struct node { struct node *child[20]; /* 存储下一个字符 */ int n; /* 记录当前单词出现的次数 */ }node, *No...
分类:其他好文   时间:2014-07-22 08:31:36    阅读次数:205
STL 源码剖析 算法 stl_algo.h -- inplace_merge
inplace_merge(应用于有序区间) -------------------------------------------------------------------- 描述:如果两个连接在一起的序列[first, middle)和 [middle, last]都已排序, 那么 inplace_merge 可将它们结合成单一一个序列,并仍有序。 源码: template inline void inplace_merge(Bidi...
分类:其他好文   时间:2014-07-20 23:27:42    阅读次数:368
STL 源码剖析 算法 stl_algo.h -- merge sort
merge sort ---------------------------------------------------------------------- 描述:归并排序 思路: 1.将区间对半分割 2.对左、右段分别排序 3.利用inplace_merge将左、右段合并成为一个完整的有序序列 复杂度:O(log n) 源码: template void mergesort(BidirectionalIter first, Bidirecti...
分类:其他好文   时间:2014-07-20 23:05:52    阅读次数:245
JavaScript中获取当前项目的绝对路径
最近在做JavaWeb项目相关的东西,几乎每天都遇到很多问题,主要是因为自己对JavaWeb方面的知识不是很清楚,尽量把自己在项目中遇到的问题都记录下来,方便以后查阅。 在我们的项目中有这样的需要,当在页面停留时间过长时,自动调回主页面first.jsp,所以我就写了个load.js代码文件,然后在每个jsp页面上都引用它,这样就出现了问题,因为每个页面不都是在WebRoot的根目录下的,有可能...
分类:编程语言   时间:2014-07-20 15:47:42    阅读次数:343
zoj 2876 Phone List
#include #include #include #define ZERO 0 const int FIRST_CHAR = '0'; char num[11111][20] ; typedef struct node { struct node *child[20]; /* 存储下一个字符 */ int n; /* 记录当前单词出现的次数 */ }node, *No...
分类:其他好文   时间:2014-07-20 11:32:38    阅读次数:215
Codeforces Round #257 (Div. 2) B Jzzhu and Sequences
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109?+?7). Input The first line contains two integers...
分类:其他好文   时间:2014-07-20 10:43:17    阅读次数:213
hdu 1251 统计
他妹的,敲完了,电脑死机了,全部消失了,又从新打了一遍,。。。这是什么节奏#include #include #include #define ZERO 0 #define ALPH_LEN 26 /* 26个字母 */ const char FIRST_CHAR = 'a'; typedef struct node { struct node *child[ALPH_LEN]; ...
分类:其他好文   时间:2014-07-20 00:31:16    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!