C++:重载函数2(计算面积)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:370 测试通过:241描述定义重载函数area(),分别计算正方形、长方形和三角形的面积。输入共计有3行。第1行有一个实数,为正方...
分类:
其他好文 时间:
2014-08-14 00:49:07
阅读次数:
240
求三角形的面积
利用向量点乘得到三角形的面积
三个for循环嵌套即可
#include
#include
#include
#include
using namespace std;
const double INF = 1e9+50;
double x[1000];
double y[1000];
double area(int i, int j, int k)
{
do...
分类:
其他好文 时间:
2014-08-13 14:56:26
阅读次数:
198
Description
YH gave Qz an odd matrix consists of one or zero. He asked Qz to find a square that has the largest area. The problem is not so easy, that means the square you find must not contai...
分类:
其他好文 时间:
2014-08-12 19:11:04
阅读次数:
208
题意:给你n个二维平面上的矩形,可以两两覆盖,问最后覆盖的总面积为多少解题思路:1)矩形状分割,可以知道,每多出一个矩形就和前面所有产生的矩形判断,看是有相交,如果有的话,就对前面的矩形进行分割,最多可以分割成8块,因为这个算法是n×n的算法时间复杂度,所以我们还需要在枚举的时候加速,采用引导值(下...
分类:
其他好文 时间:
2014-08-12 10:06:43
阅读次数:
255
StatusEach street light can be viewed as a point in a plane,which casts flash in a circular area with certain radius.What's more,if two illuminated ci...
分类:
其他好文 时间:
2014-08-12 02:58:43
阅读次数:
289
概要:该可以查询用逗号分割的字段,以及对结果进行强制排序
首先看一张表:
colid
vyear
area
cast
,31,32,21,12
2014
1
15
,32,33,34,35,21,
2014
2
16
,33,34,36,39,40
2011
3
17
表中的colid字段的值是以逗...
分类:
数据库 时间:
2014-08-11 21:33:43
阅读次数:
224
AreaCoverageTime Limit: 10000ms, Special Time Limit:2500ms, Memory Limit:65536KBTotal submit users: 16, Accepted users: 12Problem 12884 : No special j...
分类:
其他好文 时间:
2014-08-11 17:00:42
阅读次数:
321
以下是JavaFX中导出Excel的核心代码:
private HSSFWorkbook workbook;
/* Build Operation Button Area */
Button exportBn = ButtonBuilder.create().text("导出Excel").prefWidth(80).prefHeight(30).build();
...
分类:
编程语言 时间:
2014-08-11 10:09:22
阅读次数:
469
#include#include#includeusing namespace std;#define N 1002int map[N][N];int main(){ int i,j,m,n,Min,area,high,t,k; char c[100]; scanf("%d",&t...
分类:
其他好文 时间:
2014-08-11 10:06:51
阅读次数:
198
python的元组、列表、字典数据类型是很python(there python is aadjective)的数据结构。这些结构都是经过足够优化后的,所以如果使用好的话,在某些area会有很大的益处。元组 个人认为就像java的数组,python中的元组有以下特性:任意对象的有序集合,这条没啥说的...
分类:
编程语言 时间:
2014-08-11 10:02:21
阅读次数:
219