Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
99668 柯昊阳 树的深度 C++ 解答错误 37 0 MS 244 KB 216 2023-08-23 15:09:21

Tests(3/8):


#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int deep = 1; for(int i = 0;i<n;i++){ int l;int r; cin>>l>>r; if(l!=0||r!=0) deep++; } cout<<deep<<endl; return 0; }


测评信息: