Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- class type {
- public static void main(String args[]) throws NumberFormatException,
- IOException {
- // BufferedReader in = new BufferedReader(InputStreamReader(System.in));
- BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
- int t = Integer.parseInt(in.readLine());
- int[] sum;
- //sumleft = sumright = 0;
- while (t-- > 0) {
- int n = Integer.parseInt(in.readLine());
- for (int i = 0; i < n; i++) {
- String[] a = new String[n + 1];
- a = in.readLine().split(" ");
- int[] ar = new int[i + 1];
- for (int j = 0; j <= i; j++) {
- ar[j] = Integer.parseInt(a[j]);
- // System.out.print(ar[j]);
- }
- /*if (i == 0) {
- sumleft = sumright = ar[0];
- } else {
- sumleft += ar[0];
- sumright += ar[i];
- }*/
- sum[i]
- }
- /*if (sumleft >= sumright)
- System.out.println(sumleft);
- else
- System.out.println(sumright);*/
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement