Mod Tree
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4105 Accepted Submission(s): 1068
Problem Description
The picture indicates a tree, every node has 2 children.
The depth of the nodes whZ喎?http://www.Bkjia.com/kf/ware/vc/" target="_blank" class="keylink">vc2UgY29sb3IgaXMgYmx1ZSBpcyAzOyB0aGUgZGVwdGggb2YgdGhlIG5vZGUgd2hvc2UgY29sb3IgaXMgcGluayBpcyAwLjxicj4KICBOb3cgb3V0IHByb2JsZW0gaXMgc28gZWFzeSwgZ2l2ZSB5b3UgYSB0cmVlIHRoYXQgZXZlcnkgbm9kZXMgaGF2ZSBLIGNoaWxkcmVuLCB5b3UgYXJlIGV4cGVjdGVkIHRvIGNhbGN1bGF0ZSB0aGUgbWluaW1pemUgZGVwdGggRCBzbyB0aGF0IHRoZSBudW1iZXIgb2Ygbm9kZXMgd2hvc2UgZGVwdGggaXMgRCBlcXVhbHMgdG8gTiBhZnRlciBtb2QgUC4KIAo8YnI+CklucHV0ClRoZSBpbnB1dCBjb25zaXN0cyBvZiBzZXZlcmFsIHRlc3QgY2FzZXMuPGJyPgpFdmVyeSBjYXNlcyBoYXZlIG9ubHkgdGhyZWUgaW50ZWdlcnMgaW5kaWNhdGluZyBLLCBQLCBOLiAoMTw9SywgUCwgTjw9MTBeOSkKIAo8YnI+Ck91dHB1dApUaGUgbWluaW1pemUgRC48YnI+CklmIHlvdSBjYW6hr3QgZmluZCBzdWNoIEQsIGp1c3Qgb3V0cHV0IKGwT3J6LEkgY2Fuoa90IGZpbmQgRCGhsQogCjxicj4KU2FtcGxlIElucHV0Cgo8cHJlIGNsYXNzPQ=="brush:java;">3 78992 453
4 1314520 65536
5 1234 67
Sample Output
Orz,I can’t find D!
8
20
Author
AekdyCoin
基本是測試模板。
代碼:
/* ***********************************************
Author :rabbit
Created Time :2014/4/2 21:01:29
File Name :7.cpp
************************************************ */
#pragma comment(linker, "/STACK:102400000,102400000")
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include