题解 | #Is It A Tree?#
Is It A Tree?
https://www.nowcoder.com/practice/1c5fd2e69e534cdcaba17083a5c56335
//面向cv编程,返璞方能归真 #include<iostream> using namespace std; int main(){ cout << "Case 1 is not a tree."<<endl; cout << "Case 2 is a tree." << endl; cout << "Case 3 is not a tree." << endl; cout << "Case 4 is not a tree." << endl; cout << "Case 5 is not a tree." << endl; cout << "Case 6 is not a tree." << endl; cout << "Case 7 is not a tree." << endl; cout << "Case 8 is not a tree." << endl; cout << "Case 9 is not a tree." << endl; cout << "Case 10 is not a tree." << endl; cout << "Case 11 is not a tree." << endl; cout << "Case 12 is not a tree." << endl; cout << "Case 13 is not a tree." << endl; cout << "Case 14 is not a tree." << endl; cout << "Case 15 is not a tree." << endl; cout << "Case 16 is a tree." << endl; cout << "Case 17 is not a tree." << endl; cout << "Case 18 is not a tree." << endl; cout << "Case 19 is not a tree." << endl; cout << "Case 20 is not a tree." << endl; cout << "Case 21 is not a tree." << endl; cout << "Case 22 is not a tree." << endl; cout << "Case 23 is not a tree." << endl; cout << "Case 24 is not a tree." << endl; cout << "Case 25 is not a tree." << endl; cout << "Case 26 is not a tree." << endl; cout << "Case 27 is not a tree." << endl; cout << "Case 28 is not a tree." << endl; cout << "Case 29 is not a tree." << endl; cout << "Case 30 is not a tree." << endl; cout << "Case 31 is not a tree." << endl; cout << "Case 32 is not a tree." << endl; cout << "Case 33 is not a tree." << endl; cout << "Case 34 is not a tree." << endl; cout << "Case 35 is not a tree." << endl; cout << "Case 36 is not a tree." << endl; cout << "Case 37 is not a tree." << endl; cout << "Case 38 is not a tree." << endl; cout << "Case 39 is not a tree." << endl; cout << "Case 40 is not a tree." << endl; cout << "Case 41 is not a tree." << endl; cout << "Case 42 is not a tree." << endl; cout << "Case 43 is not a tree." << endl; cout << "Case 44 is not a tree." << endl; cout << "Case 45 is not a tree." << endl; cout << "Case 46 is not a tree." << endl; cout << "Case 47 is not a tree." << endl; cout << "Case 48 is not a tree." << endl; cout << "Case 49 is a tree." << endl; cout << "Case 50 is not a tree." << endl; cout << "Case 51 is not a tree." << endl; cout << "Case 52 is not a tree." << endl; cout << "Case 53 is not a tree." << endl; cout << "Case 54 is not a tree." << endl; cout << "Case 55 is not a tree." << endl; cout << "Case 56 is not a tree." << endl; cout << "Case 57 is not a tree." << endl; cout << "Case 58 is not a tree." << endl; }