题意:给出一个多边形和一个圆,问是否是凸多边形,若是则再问圆是否在凸多边形内部。分3步:1、判断是否是凸多边形2、判断点是否在多边形内部3、判断点到各边的距离是否大于等于半径上代码:#include
#include
#include
#include
#include
#include <algorit...
分类:
其他好文 时间:
2015-03-20 18:41:56
阅读次数:
133
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by takin...
分类:
其他好文 时间:
2015-03-07 17:11:22
阅读次数:
124
#include#includeusing namespace std;const int AIM=6174;int n;int arr[4];bool NonIncreasingOrder(int a,int b){ return a>b;}bool NonDecreasingOrder(int....
分类:
其他好文 时间:
2015-03-05 20:59:09
阅读次数:
156
在类Unix系统中,/dev/null称为空设备,它是一个特殊的设备文件,它丢弃一切写入其中的数据,不过他会报告写入成功,读取它的话会立即得到一个EOF。在程序员行话中,尤其是Unix行话中,/dev/null被称为位桶,也就是bit bucket,也可以称之为黑洞,即black hole。这个空设备通常被用于丢弃不需要的输出流,或者作为用于输入流的空文件。这些操作通常由重定向完成。...
分类:
其他好文 时间:
2015-02-25 09:08:38
阅读次数:
156
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre...
分类:
其他好文 时间:
2015-02-19 12:54:32
阅读次数:
138
_outerClipper->setStencil( target ); //target是背景 _outerClipper->addChild( holesClipper ); //holesClipper是第二层holesClipper->addChild( target ); hole...
分类:
其他好文 时间:
2015-02-06 20:19:28
阅读次数:
115
本文来自转载http://www.shidehui.com/jingyan/about-ali-cloud-ecs-centos-567-linux-glibc-library-serious-security-hole-repair-methods.html亲测,已经修补成功!日前Linux GN...
分类:
系统相关 时间:
2015-02-03 18:48:53
阅读次数:
270
A Round Peg in a Ground Hole
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 5399
Accepted: 1712
Description
The DIY Furniture company specializes in assembl...
分类:
其他好文 时间:
2015-01-27 22:01:36
阅读次数:
175
在【電子製造業】打滾多年,分享 SMT、焊錫、塑膠射出、產品設計、瓦楞包裝…等經驗。請注意文章內容不見得都正確,服用前請三思… 之前有網友提醒我有篇文章把PCB的盲孔(Blind hole)、埋孔(Buried hole)弄錯了,圍了避免類似的問題出現,所以我特地找了一些關於PCB的書籍,研究...
分类:
其他好文 时间:
2015-01-22 10:58:04
阅读次数:
130
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre...
分类:
其他好文 时间:
2015-01-20 08:58:38
阅读次数:
231