- LISP 将图层B中的所有图元合到图层A里面
- POfacets4.3 物理光学方法 近似计算散射体RCS POFACETS is an implementation of the physical optics approximation for predicting the radar cross section (RCS) of complex objects. It utilizes the scientific computational features of MATLAB and its Graphical User Interface (GUI) functions to provide an error
- nihe 拟合球面
- ScriptingGuideExamples ANSYS/WORKBENCH二次开发脚本
- libuvc_ros-master 摄像头uvc开发源码分享
- 潮流计算 33节点程序
文件名称:1211
-
所属分类:
- 标签属性:
- 上传时间:2014-11-14
-
文件大小:392.95kb
-
已下载:14次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Descr iption
给出一棵二叉树的结构,判断这棵二叉树是不是完全二叉树。必须使用二叉树类实现。
Input Format
输入文件一共包含N+1行。
第一行含有一个正整数N,代表树中结点总数。
第二行到第N+1行,每行包含二个整数。其中第i行的二个整数Pi,Qi,代表结点i的左孩子为Pi,右孩子为Qi。若Pi=0,则表明结点i没有左孩子。同样的,若Qi=0,则表明结点i没有右孩子。(第i行指的是这N行中的第i行)
Output Format
如果给出的树是完全二叉树,则输出 Y ,否则输出 N 。(均不包含引号)-Descr iption is given a binary tree structure to determine binary tree is not complete binary tree. You must use a binary tree class implementation. Input Format input file contains a total N+1 line. The first line contains a positive integer N, the total number of nodes in the tree representation. N+1 second line to the first line, each line contains two integers. Wherein the i-th row of two integers Pi, Qi, representative of the left child node i is Pi, the right child of Qi. If Pi = 0, it indicates that there is no left child node i. Similarly, if Qi = 0, it indicates that there is no right child node i. (Referring to the i-th row in the first line of this N i lines) Output Format If the tree is a complete binary tree is given, the output ' Y' , otherwise the output ' N' . (Exclude quotes)
给出一棵二叉树的结构,判断这棵二叉树是不是完全二叉树。必须使用二叉树类实现。
Input Format
输入文件一共包含N+1行。
第一行含有一个正整数N,代表树中结点总数。
第二行到第N+1行,每行包含二个整数。其中第i行的二个整数Pi,Qi,代表结点i的左孩子为Pi,右孩子为Qi。若Pi=0,则表明结点i没有左孩子。同样的,若Qi=0,则表明结点i没有右孩子。(第i行指的是这N行中的第i行)
Output Format
如果给出的树是完全二叉树,则输出 Y ,否则输出 N 。(均不包含引号)-Descr iption is given a binary tree structure to determine binary tree is not complete binary tree. You must use a binary tree class implementation. Input Format input file contains a total N+1 line. The first line contains a positive integer N, the total number of nodes in the tree representation. N+1 second line to the first line, each line contains two integers. Wherein the i-th row of two integers Pi, Qi, representative of the left child node i is Pi, the right child of Qi. If Pi = 0, it indicates that there is no left child node i. Similarly, if Qi = 0, it indicates that there is no right child node i. (Referring to the i-th row in the first line of this N i lines) Output Format If the tree is a complete binary tree is given, the output ' Y' , otherwise the output ' N' . (Exclude quotes)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1211/1211.cbp
1211/1211.depend
1211/1211.layout
1211/123.cpp
1211/123.exe
1211/123.o
1211/bin/Debug/1211.exe
1211/include/queue.h
1211/main.cpp
1211/obj/Debug/main.o
1211/queue.c
1211/src/queue.cpp
1211/obj/Debug/src
1211/bin/Debug
1211/obj/Debug
1211/bin
1211/include
1211/obj
1211/src
1211
1211/1211.depend
1211/1211.layout
1211/123.cpp
1211/123.exe
1211/123.o
1211/bin/Debug/1211.exe
1211/include/queue.h
1211/main.cpp
1211/obj/Debug/main.o
1211/queue.c
1211/src/queue.cpp
1211/obj/Debug/src
1211/bin/Debug
1211/obj/Debug
1211/bin
1211/include
1211/obj
1211/src
1211
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.