码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
Square roots
Loops are often used in programs that compute numerical results by starting with an approximate answer and iteratively improving it.For example, one w...
分类:其他好文   时间:2014-06-28 20:35:11    阅读次数:252
leetcode--Spiral Matrix II
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:其他好文   时间:2014-06-18 21:56:47    阅读次数:209
hdu1518 Square
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1518 题目为: Square Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7839    Accepted Submi...
分类:其他好文   时间:2014-06-16 22:34:36    阅读次数:279
Codeforces Round #249 (Div. 2) A. Black Square
水题#include #include #include using namespace std;int main(){ vector a(4); cin >> a[0] >> a[1]>>a[2]>>a[3]; string str; cin >> str; int res = 0; for(in...
分类:其他好文   时间:2014-06-14 23:00:14    阅读次数:249
关于HTML5
http://runjs.cn/square 经理给我看了html5做的捕鱼达人,感觉好牛叉。 还让我有空研究研究。。。
分类:Web程序   时间:2014-06-12 13:47:25    阅读次数:243
虚函数-计算图形面积
Problem B: C++习题 虚函数-计算图形面积 Description 编写一个程序,定义抽象基类Shape,由它派生出5个派生类: Circle(圆形)、Square(正方形)、Rectangle(矩形)、Trapezoid(梯形)、Triangle(三角形)。 用虚函数分别计算几种图形面积,并求它们之和。 要求用基类指针数组,使它每一个元素指向一个派生类对象。  ...
分类:其他好文   时间:2014-06-10 15:07:53    阅读次数:286
UVA 10085(bfs+康拓展开)八数码问题
Description Problem A The Most Distant State Input: standard input Output: standard output   The 8-puzzle is a square tray in which eight square tiles are placed. The remaining ninth square ...
分类:其他好文   时间:2014-06-10 07:59:06    阅读次数:335
Sqrt(x)
题目 Implement int sqrt(int x). Compute and return the square root of x. 方法一 使用二分查找,注意int的边界问题,使用除法。 public int sqrt(int x) { if (x <= 1) { return x; ...
分类:其他好文   时间:2014-06-10 06:49:45    阅读次数:274
Leetcode:sqrt 开方运算
戳我去解题Implementint sqrt(int x).Compute and return the square root ofx.1. 二分查找2. 牛顿迭代法不断用(x,f(x))的切线来逼近方程x^2-a=0的根。根号a实际上就是x^2-a=0的一个正实根,这个函数的导数是2x。也就是说...
分类:其他好文   时间:2014-06-10 00:30:29    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!