码迷,mamicode.com
首页 >  
搜索关键字:point    ( 7079个结果
MemSQL Start[c]UP 2.0 - Round 1 B. 4-point polyline (线段的 枚举)
昨天cf做的不好,居然挂零了,还是1点开始的呢。,,,a题少了一个条件,没判断长度。写一下B题吧题目链接题意:给出(n, m),可以得到一个矩形让你依次连接矩形内的4个点使它们的长度和最长,而这三条线段可以相交、交叉分析:这种情况下,枚举对角线的四个点,当时我也想过,我只用了其中的一种方式,其实有四...
分类:数据库   时间:2014-07-29 11:26:56    阅读次数:280
CF 452B 4-point polyline(思维)
4-point polyline大意:给你一个网格,从(0, 0)到(n, m)。在网格中选出4个不相同的点,按序相连成3段,求3段想加之和最长的情况是什么,输出这种情况。思路:当时做的时候各种蛋疼,主要是没想对方向,导致一直WA在第3组。今天看到了一个比较清晰的思路。首先,确定一个短边,我取了m为...
分类:其他好文   时间:2014-07-29 10:59:07    阅读次数:230
HDU 4311 Meeting point-1 && HDU 4312 Meeting point-2
这俩个题 题意::给出N(#include #include #include #include using namespace std;typedef long long LL;struct info{ LL x,y; int cnt; info(){} info(int ...
分类:其他好文   时间:2014-07-28 23:54:54    阅读次数:550
poj 1328 Radar Installation (贪心)
# include # include # include # include using namespace std; struct point { double left,right; }p[2010],temp; bool cmp(point a,point b) { return a.left<b.left; } int main() { int n,i,count,fla...
分类:其他好文   时间:2014-07-28 16:20:33    阅读次数:208
【足迹C++primer】56、文本查询程序
/** * 功能:文本查询程序 * 时间:2014年7月23日10:26:09 * 作者:cutter_point */ #include #include #include #include #include #include #include using namespace std; /* Alice Emma has long flowing red hair. Her Daddy s...
分类:编程语言   时间:2014-07-28 16:15:33    阅读次数:387
POJ 1066
由于到达点时不能绕墙,因为这是无意义的,所以,两点间的最小墙依然是按照直线所穿过的墙计算。#include #include #include #include using namespace std;const double eps=0.000000001;struct point{ double...
分类:其他好文   时间:2014-07-28 15:11:13    阅读次数:222
数学之路-python计算实战(19)-机器视觉-卷积滤波
filter2DConvolves an image with the kernel.C++: void filter2D(InputArray src, OutputArray dst, int ddepth, InputArraykernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT )P...
分类:编程语言   时间:2014-07-28 00:24:39    阅读次数:294
Codeforces 50C Happy Farm 5 凸包
题目链接:点击打开链接 == 难得的y出了一道计算几何 #include #include #include #include #include using namespace std; #define INF 999999999.9 #define PI acos(-1.0) #define ll long long struct Point { ll x, y,...
分类:移动开发   时间:2014-07-28 00:15:29    阅读次数:326
[转]高精度乘法计算
转载自:Daywei 高精度乘法计算高精度乘法计算基础1.高精度浮点运算方法 高精度浮点(Floating Point,FP)运算可以转换成整数型运算。由于高精度浮点数可以看成是由整数部分(Integer Part,IP)与小数部分(Decimal Part,DP)的组合,因此其乘法可以看成以下3....
分类:其他好文   时间:2014-07-27 23:20:19    阅读次数:309
Android中获取屏幕长宽的方法
package com.kale.screen;import android.annotation.SuppressLint;import android.app.Activity;import android.graphics.Point;import android.os.Bundle;impo...
分类:移动开发   时间:2014-07-27 22:23:29    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!