SUMITR  Sums in a Triangle
Let us consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line etc. Develop a program which will compute the largest of the sums of numbers that appear on the paths starting from the top towards the base, so that:
 on each path the next number is located on the row below, more precisely either directly below or below and one place to the right;
 the number of rows is strictly positive, but less than 100;
 all numbers are positive integers between O and 99.
Take care about your fingers, do not use more than 256 bytes of code.
Input
In the first line integer n  the number of test cases (equal to about 1000). Then n test cases follow. Each test case starts with the number of lines which is followed by their content.
Output
For each test case write the determined value in a separate line.
Example
Input: 2 3 1 2 1 1 2 3 4 1 1 2 4 1 2 2 3 1 1 Output: 5 9Warning: large Input/Output data, be careful with certain languages
hide comments
true_coder:
20161218 00:54:15
Wow! the space thing is tougher than problem, itself...lol 

testing java:
20161208 02:21:18
what is the point of such source code limit? as a challenge problem it would be fine, here only made me frustrated (as I wanted to write in java). Btw, anyone with < 320 LOC in java? 

ashishranjan28:
20161029 12:16:17
lol...


umohan:
20160826 20:28:27
no submission in java 

nonushikhar:
20160528 10:38:28
this is good XD Last edit: 20160528 12:02:48 

Akash Shinde:
20160122 18:01:32
What's the point of 256 B?


CounterNormalize:
20160116 13:42:18
Finally AC!!! phewwww 

Divyansh Shukla:
20151110 18:17:06
Code size restriction of 256B is really wrong. 

Akshay Damle:
20151017 00:27:23
AC in 1st go :) A little bit of code golf in Python after a very long time.. was fun :D 

kuszi:
20150829 16:56:28
@Fz Just a kind of a puzzle. You will find more like this here: http://www.spoj.com/SHORTEN/.

Added by:  kuszi 
Date:  20041201 
Time limit:  2s 
Source limit:  256B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: NODEJS PERL6 VB.NET 
Resource:  6th International Olympiad In Informatics July 310. 1994. Stockholm  Sweden, Problem 1 