码迷,mamicode.com
首页 >  
搜索关键字:point    ( 7079个结果
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
hdu 4771 求一点遍历所有给定点的最短路(bfs+dfs)
题目如题。题解如题。 由于目标点最多只有4个,先bfs出俩俩最短路(包括起点),再dfs最短路。)0s1A;(当年弱跪杭州之题,现看如此简单) #include #include #include #include #include using namespace std; struct point { int x,y; int cnt; }; char a[105][105]...
分类:其他好文   时间:2014-08-27 22:00:38    阅读次数:272
初级8皇后问题
初级8皇后问题,不是真正的8皇后问题,是该问题的初级条件限制:产生不同行,不同列的组合。typedef struct Spoint{ int x; int y; Spoint() { x = -1; y = -1; }};static Spoint point[8];int Queen8(int.....
分类:其他好文   时间:2014-08-27 21:44:08    阅读次数:274
leetcode 之 Unique Paths
Unique Paths A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The r...
分类:其他好文   时间:2014-08-27 16:34:58    阅读次数:242
Fixed-Point Types (Exact Value) - DECIMAL, NUMERIC
Fixed-Point Types (Exact Value) - DECIMAL, NUMERIC ?DECIMAL(M,D) The DECIMAL and NUMERIC types store exact numeric data values. These types are used when it is important to preserve(保存) exact ...
分类:其他好文   时间:2014-08-27 14:54:38    阅读次数:270
Hackerrank--Lexicographic paths
题目链接Krishnakant is standing at(0,0)in the Cartesian plane. He wants to go to the point(N,M)in the same plane using only horizontal and vertical moves ...
分类:其他好文   时间:2014-08-27 14:30:17    阅读次数:230
【ThinkingInC++】34、带有构造函数和析构函数的Stack
头文件 /** * 书本:【ThinkingInC++】 * 功能:带有构造函数和析构函数的Stack * 时间:2014年8月27日11:13:10 * 作者:cutter_point */ #ifndef STACK3_H_INCLUDED #define STACK3_H_INCLUDED class Stack { struct Link { void*...
分类:编程语言   时间:2014-08-27 13:05:48    阅读次数:245
【leetcode】Container With Most Water
题目: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) ...
分类:其他好文   时间:2014-08-27 09:29:57    阅读次数:174
初级8皇后问题
初级8皇后问题,不是真正的8皇后问题,是该问题的初级条件限制:产生不同行,不同列的组合。 typedef struct Spoint { int x; int y; Spoint() { x = -1; y = -1; } }; static Spoint point[8]; int Queen8(int n, int cur) { static int iCount...
分类:其他好文   时间:2014-08-26 19:45:46    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!