码迷,mamicode.com
首页 >  
搜索关键字:first    ( 14115个结果
codechef Sums in a Triangle题解
Let's consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line, three in the third line, etc....
分类:其他好文   时间:2014-08-28 13:03:29    阅读次数:218
【leetcode】Jump Game I, II 跳跃游戏一和二
题目: Jump Game I: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that...
分类:其他好文   时间:2014-08-28 02:07:48    阅读次数:249
SICP 1.37 1.38 1.39
解:1.37 (define?tolerance?0.00001) (define?(average?x?y) ??(/?(+?x?y)?2.0)) (define?(fixed-point?f?first-guess) ??(define?(close-enought??v1?v2) ????(<?(abs?(-?v1?v2)...
分类:其他好文   时间:2014-08-28 01:01:08    阅读次数:238
Jump Game II <LeetCode>
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-08-28 00:47:28    阅读次数:263
第二章 开始学习C++
第二章开始学习C++2.1 main函数 简单代码如下:#include int main(){ //This is my first program using namespace std; cout 是预处理指令,表示编译之前要包含iostream这个文件到程序的开始位置。 2.1.5头文件.....
分类:编程语言   时间:2014-08-27 21:57:48    阅读次数:241
poj 3252 Round Numbers(数位dp)
http://poj.org/problem?id=3252 "Round Number "被称为其二进制形式中0的个数比1的个数多。求[x,y]区间内“Round Number”的个数。 计数的时候最重要的是处理前导零,前导零不算数,因此与SCOI2009一样,增加一个标记变量first,标志着当前这意味是不是首位,不是首位的话1和0的个数都为0,否则根据枚举的1或0进行记忆...
分类:其他好文   时间:2014-08-27 20:36:48    阅读次数:211
Head first javascript(四)
if语句if ( test condition ) statement1;else statement2;// comments/* comments ... */script level:直接在里面声明的变量相当与全局变量,可以直接在每个函数里面访问。在函数里面生命的变量只能在该函数...
分类:编程语言   时间:2014-08-27 20:08:18    阅读次数:170
Javascript 学习 笔记一
1、操作 HTML 元素        如需从 JavaScript 访问某个 HTML 元素,您可以使用 document.getElementById(id) 方法。        请使用 "id" 属性来标识 HTML 元素: 例子        通过指定的 id 来访问 HTML 元素,并改变其内容: My First Web Page My First Paragraph...
分类:编程语言   时间:2014-08-27 18:53:58    阅读次数:194
UESTC 893 First Date 计算时间
点击打开链接 First Date Time Limit: 5678/1234MS (Java/Others)     Memory Limit: 65432/65432KB (Java/Others) Submit  Status In 1582, pope Gregory XIII decreed a calendar re...
分类:其他好文   时间:2014-08-27 18:48:08    阅读次数:296
LeetCode 44 Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal i...
分类:其他好文   时间:2014-08-27 18:45:28    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!