Here's my try. I registered and it got accepted. 191 characters in total, but I bet there are better ways than this.
Warning: this contains a spoiler. That's why I changed the text color to the background color. To actually view it, select it.
I challenge everyone to do a better job .
Code:
#define Z(a)scanf("%d",&a);
int r,b[101],i,j,m,o,p,z,y;main(){for(Z(r)r--;){for(y=i=!Z(m)i++<m;)for(j=b[i]=o=0;j++<i&&Z(z))b[j]=((p=b[j])>o?b[j]:o)+z,o=p,b[j]>y&&(y=b[j]);printf("%d\n",y);}}
*edit*
2 characters less now (so score 189):
Code:
#define Z(a)scanf("%d",&a);
int r,b[101],i,j,m,o,p,z,y,x;main(){for(Z(r)r--;){for(y=i=!Z(m)i++<m;)for(j=b[i]=o=0;j++<i&&Z(z))x=b[j]=((p=b[j])>o?b[j]:o)+z,o=p,x>y&&(y=x);printf("%d\n",y);}}
*edit*
-4 for 185:
Code:
#define Z(a)scanf("%d",&a);
r,b[101],i,j,m,o,p,z,y,x;main(){for(Z(r)r--;){for(y=i=!Z(m)i++<m;)for(j=b[i]=o=0;j++<i&&Z(z))x=b[j]=((p=b[j])>o?b[j]:o)+z,o=p,x>y&&(y=x);printf("%d\n",y);}}
I even got it accepted without the "=0" but I'm not sure if that's legal or just luck... So I won't count this -2 :P