题目链接:点击打开链接
求给定的3维坐标的凸包的表面积
三维凸包裸题。。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define PR 1e-8
#define N 510
struct TPoint{
double x, y, z;
TPoint...
分类:
其他好文 时间:
2014-07-29 13:21:47
阅读次数:
205
一种动态内存管理Malloc/Free服务的链表实现 , 动态内存分配与回收服务,Malloc/Free的实现,最主要的核心内容是单向链表。其数据结构定义如下,一整段内存被SRAM或SDRAM,DRAM由系统的内存管理模块统一管理,这里主要是堆的管理:
typedef struct A_BLOCK_LINK
{
struct A_BLOCK_LINK *pxNextFre...
分类:
其他好文 时间:
2014-07-29 13:21:31
阅读次数:
433
#include
using namespace std;
struct vote{
int x;
string s;
}v[20];
bool cmp(vote a,vote b)
{
return a.x>b.x;
}
int main()
{
int n,m;
string str;
scanf("%d%d",&n,&m);
for(i...
分类:
其他好文 时间:
2014-07-29 13:07:57
阅读次数:
170
struct wpa_global * wpa_supplicant_init(struct wpa_params *params) struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global,struct w...
分类:
其他好文 时间:
2014-07-29 12:34:06
阅读次数:
302
可以通过顶角角度来计算切线与坐标轴的坐标开始还以为有公式可以算,谁知道原来是解二元一次方程,靠。。#include #include #include #include using namespace std;const int MAX=1050;struct point{ double x; in...
分类:
其他好文 时间:
2014-07-29 11:44:26
阅读次数:
225
#ifndef __DEF_H__#define __DEF_H__#include #include #include #define TRUE 1#define FALSE 0//任务结构体typedef struct{ void (*thread_function_ptr_) (void...
分类:
编程语言 时间:
2014-07-29 11:34:56
阅读次数:
281
1 #include 2 #include 3 #include 4 5 typedef struct tire 6 { 7 struct tire *next[26];//由于是小写字母,所以26,数字10,大小写字母52 8 int v; 9 }Tire;10 11 Tire...
分类:
其他好文 时间:
2014-07-29 11:33:06
阅读次数:
208
http://acm.hdu.edu.cn/showproblem.php?pid=4862#include #include #include #include #include using namespace std ;const int INF=0xfffffff ;struct node{ ...
分类:
其他好文 时间:
2014-07-29 11:25:56
阅读次数:
306
Sort a linked list using insertion sort.题目要求:链表的插入排序,由于没有时间复杂度的要求,可以直接循环操作。/** * Definition for singly-linked list. * struct ListNode { * int val;...
分类:
其他好文 时间:
2014-07-29 10:54:26
阅读次数:
190
解法:比较简单,用plus表示进位 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(in...
分类:
其他好文 时间:
2014-07-29 10:53:06
阅读次数:
273