今天考试第一个编程题如下: 题目不算难,暴力思路,用vector存储每条路径,包括新的旧的,计算所有路径中最大值。代码如下: int main() { int n; while(cin>>n) { if(n<=1)//0 1 { cout<<n<<endl; break; } int res=0; vector<vector<int> > v;//store all path int a,b;//father and son n--; while(n--) { cin>>a>>b;...