码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
POJ 1375
可以通过顶角角度来计算切线与坐标轴的坐标开始还以为有公式可以算,谁知道原来是解二元一次方程,靠。。#include #include #include #include using namespace std;const int MAX=1050;struct point{ double x; in...
分类:其他好文   时间:2014-07-29 11:44:26    阅读次数:225
0726------Linux基础----------线程池
#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
HDProblem-1251统计难题
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
HDU 4862
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
[LeetCode 题解]: Insertion Sort List
Sort a linked list using insertion sort.题目要求:链表的插入排序,由于没有时间复杂度的要求,可以直接循环操作。/** * Definition for singly-linked list. * struct ListNode { * int val;...
分类:其他好文   时间:2014-07-29 10:54:26    阅读次数:190
LeetCode : add two numbers
解法:比较简单,用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
结构体定义 typedef struct 用法详解和用法小结
typedef是类型定义的意思。typedef struct 是为了使用这个结构体方便。具体区别在于:若struct node {}这样来定义结构体的话。在申请node 的变量时,需要这样写,struct node n;若用typedef,可以这样写,typedefstruct node{}NODE...
分类:其他好文   时间:2014-07-29 10:48:06    阅读次数:288
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
UVA 11134 Fabled Rooks
贪心+优先队列+问题分解对x,y 分开处理当 xl 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct node { 8 int l,r; 9 int id;10 friend bool...
分类:其他好文   时间:2014-07-28 23:42:54    阅读次数:251
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!