改下1163题代码中的数组中的n即可AC。 代码如下: #include <iostream> using namespace std; int a[350][351]; int main() { int i,j,n; cin >> n; for(i=0;i<n;i++) for(j=0;j<=i;j++) cin >> a[i][j]; for
【原题】 Write a program that calculates the highest sum of numbers passed on a route that starts at the top and ends somewhere on the base. Each step can go either diagonally down to the left or diagona