码迷,mamicode.com
首页 >  
搜索关键字:first    ( 14115个结果
Sicily 1381. a*b
ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionGive two positive integers a and b, please help us calculate a*b.InputThe first line of t...
分类:其他好文   时间:2014-10-16 14:06:42    阅读次数:135
Burrows-Wheeler Transform
1, write down all the permutations of the string of character ; 2, sort these rows according to the first character of each row; 3, the last coloumn is the result string. BWT reverse: 1, write...
分类:其他好文   时间:2014-10-15 23:26:11    阅读次数:226
Euler Project question 2 in python way
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3...
分类:编程语言   时间:2014-10-15 23:13:51    阅读次数:245
C++ inline
(一)inline函数(摘自C++ Primer的第三版)在函数声明或定义中函数返回类型前加上关键字inline即把min()指定为内联。 inline int min(int first, int secend) {/****/}; inline函数对编译器而言必须是可见的,以便它能够在调用点内展...
分类:编程语言   时间:2014-10-15 20:17:51    阅读次数:158
424 - Integer Inquiry
Integer InquiryOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and h...
分类:其他好文   时间:2014-10-15 19:35:31    阅读次数:226
设计模式总结(《Head First设计模式》学习总结)
耗费一个半月时间细细读完了《Head First设计模式》,本文将对书中介绍到的所有模式作以总结。虽然现阶段的工作大多是围绕“实现”的,但个人认为在陷入“编码”的漩涡之前有必要了解一些“设计”相关的东西,这些思想与理论会慢慢的影响我们的代码和思维。
分类:其他好文   时间:2014-10-15 18:44:01    阅读次数:222
leetcode - Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. class Solution { public: ListNode *mergeTwoLists(Li...
分类:其他好文   时间:2014-10-15 15:48:31    阅读次数:127
We Need Medicine zoj3812 The 2014 ACM-ICPC Asia Mudanjiang Regional
一道非常不错的状态压缩+map映射+背包的DP题目。 题意很简单,就是给N个物品有两个属性 a ,b.问对于A,B的要求是否可以用N件物品组合产生。若满足则输出一种。 这个直观感受就是背包问题啊,但是看下数据规模 The first line contains two integers N (1 N <= 400) and Q (1 Q For the next N lines,...
分类:其他好文   时间:2014-10-15 11:18:00    阅读次数:265
HDU 1058 Humble Numbers(dp)
Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first...
分类:其他好文   时间:2014-10-14 23:41:13    阅读次数:266
hibernate学习——Set集合配置
Set集合的配置数据表的创建:表关系一个员工拥有多个身份create table EMPLOYEE ( id INT NOT NULL auto_increment, first_name VARCHAR(20) default NULL, last_name VARCHAR(20) default...
分类:Web程序   时间:2014-10-14 22:44:19    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!