* struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @param root TreeNode类 * @return int整型 */ int res = 0; void sn(TreeNode* root, int p) { // write code here if(!root){ ...