CodeChef submission 630101 (JAVA) plaintext list. Status: RE, problem SUMTRIAN, contest . By ank007 (ank007), 2011-08-21 13:02:42.
import java.util.*; class mainn { static int high=0; { int n=sc.nextInt(); for(int a=0;a<n;a++) { int lines =sc.nextInt(); for(int b=0;b<lines;b++) { st[b]=sc.next(); } for(int i=0;i<lines;i++) { int lno=0,temp=0; for(int k=0;k<(lines-i);k++) { temp+=st[lno].charAt(0)-48; lno++; } for(int j=0;j<i;j++) { int temp1=0,pos=1,lno1=lno; for(int l=0;l<i;l++) { temp1+=st[lno1].charAt(pos)-48; if(l<j) pos++; lno1++; } if(temp+temp1>high) high=temp+temp1; } } } } }
Comments

