摘要:
题目 链接:http://acm.hdu.edu.cn/showproblem.php?pid=6567 Problem Description Avin has two trees which are not connected. He asks you to add an edge betwee 阅读全文
摘要:
题目 链接:https://ac.nowcoder.com/acm/contest/15644/B来源:牛客网 A gene tree is a tree showing the evolution of various genes or biological species. A gene tre 阅读全文
摘要:
题目 Petya has equal wooden bars of length n. He wants to make a frame for two equal doors. Each frame has two vertical (left and right) sides of length 阅读全文
摘要:
题目 Farmer John likes to play mathematics games with his N cows. Recently, they are attracted by recursive sequences. In each turn, the cows would stan 阅读全文
摘要:
#include<iostream>#include<stack>template <class T> class node { public: T data; int height; node<T>* left; node<T>* right; node() { left = nullptr; r 阅读全文