- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 树状数组例题(POJ -2352)
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher and ...
2018-05-31 19:04:46 124
原创 结构体链表 (创建)
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct student { int no; char name[21]; double s[3]; double ave; double sum; }stu; typedef stru...
2018-05-23 23:23:09 4533
原创 链表 (删除特定元素)
#include <stdio.h> #include <stdlib.h> typedef struct node { int date; struct node *next; } lnode; void creatlist(lnode *h,int n) { lnode *p,*r; r=h; int i,x; for(...
2018-05-22 23:18:02 435
原创 树状数组(区间更新)HDU1556
#include <iostream> #include <cstdio> #include <cstring> using namespace std; int n; int tree[100005]; int lowbit(int i) { return i&(-i); } void update(int i,int x) { wh...
2018-05-22 23:11:46 162
原创 链表 (已排好序 插入一个元素仍有序)
#include <stdio.h> #include <stdlib.h> typedef struct node { int date; struct node *next; }lnode; void creatlist(lnode *h,int n)//尾插法创建链表 { lnode *p,*r; int i,x; r=h; ...
2018-05-22 15:10:39 1999
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人