码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
[译文]casperjs使用说明-选择器
casperjs的选择器可以在dom下工作,他既支持css也支持xpath.下面所有的例子都基于这段html代码: My page Hello one two three ©2012 myselfCSS3默认情况下,...
分类:Web程序   时间:2014-07-03 09:10:37    阅读次数:235
TypeError: string indices must be integers, not str
1. TypeError: string indices must be integers, not str字符串类型取第index个字符的时候,应该传入int而不是str。如1a='abcdef'2printa[0]3#而不是 print a['0']更常见的情况是把一个string当成了字典在使...
分类:其他好文   时间:2014-07-03 00:36:01    阅读次数:746
[leetcode] Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.
分类:其他好文   时间:2014-07-02 21:07:20    阅读次数:149
[leetcode] Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
分类:其他好文   时间:2014-07-02 10:03:09    阅读次数:175
【OC语法快览】二、存取方法
Accessors 存取方法 All instance variables are private in Objective-C by default, so you should use accessors to get and set values in most cases. There are two syntaxes. This is the traditional 1.x syntax: OC中所有的实例变量默认是私有的,所以多数情况下你应该使用访问器来获得和设置实例变量的值。访问器有...
分类:其他好文   时间:2014-07-02 08:39:04    阅读次数:231
计算几何-hdoj-1221-Rectangle and Circle
Rectangle and Circle   Problem Description Given a rectangle and a circle in the coordinate system(two edges of the rectangle are parallel with the X-axis, and the other two are parallel with the Y...
分类:其他好文   时间:2014-07-02 07:29:06    阅读次数:268
UVA 12714 Two Points Revisited(简单数学题)
UVA 12714 Two Points Revisited(简单数学题)...
分类:其他好文   时间:2014-07-02 06:54:53    阅读次数:154
中小型软件项目开发一般流程建议
一:编写目的本文档的编写旨在探寻规范的软件开发流程、加快软件开发速度、提高软件开发质量、降低项目综合成本。IT界有一句格言:"You can do it right; you can do it fast; you can do it cheap. Pick two." 而我们要做的就是:提供优质服...
分类:其他好文   时间:2014-07-01 16:36:01    阅读次数:193
UVa 10106 Product
高精度乘法问题,WA了两次是因为没有考虑结果为0的情况。ProductThe ProblemThe problem is to multiply two integers X, Y. (0 3 #include 4 #include 5 using namespace std; 6 7 con...
分类:其他好文   时间:2014-07-01 10:24:54    阅读次数:238
UVa 10250 The Other Two Trees
还是读了很长时间的题,不过题本身很简单。可以把四棵树想象成正方形的四个顶点,已知两个相对顶点的坐标,求另外两个坐标。不过,原题可没直接这么说,中间需要一些小证明。题中说有一个平行四边形然后分别以四条边为边长向外作正方形,四棵树就在四个正方形中心的位置。这是我用几何画板画的图。下面证△FOE≌△HGO...
分类:其他好文   时间:2014-07-01 10:14:31    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!