首页 > 代码库 > 九度 1201

九度 1201

#include <cstdio>#include <iostream>using namespace std;#ifdef ONLINE_JUDGE                                   #define FINPUT(file)  0#define FOUTPUT(file) 0#else                                                #define FINPUT(file)  freopen(file,"r",stdin)#define FOUTPUT(file) freopen(file,"w",stdout)#endifstruct binTree{	int data;	binTree *left;	binTree *right;};void insertTree(binTree **root,binTree *node){	if(*root==NULL)	{		*root = node;		return ;	}		if(node->data<(*root)->data)		insertTree(&(*root)->left,node);	else if(node->data>(*root)->data)		insertTree(&(*root)->right,node);	else if(node->data = http://www.mamicode.com/(*root)->data)>