二叉排序树BST

摘要: 二叉排序树BST 原则就是小的话接左边,大的话接右边,必须说的是效率太低主要是刚开始理解错了不需要再写什么Creat函数的,直接搜着插着就能进行#include<stdio.h> #include<malloc.h> #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define NULL 0 typedef int ElemType; typedef int Status; typedef int KepType; ... 阅读全文
posted @ 2011-12-01 23:33 java课程设计例子 阅读(432) 评论(0) 推荐(0)

无线网络覆盖 郑州大学第三届acm比赛试题 n 199

摘要: 题不难,分好各种情况后再写,一个分类讨论的问题没带优盘,保存一下#include<stdio.h>#include<math.h>int main(){ int T, length, wide, radius, dia; scanf("%d", &T); while(T--) { scanf("%d%d%d", &length, &wide, &radius); dia = 2 * radius; if(dia <= wide) printf("impossible\n") 阅读全文
posted @ 2011-12-01 09:33 java课程设计例子 阅读(159) 评论(0) 推荐(0)