Advertisement
bkit4s0

[read standard input]

Apr 8th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5. class type {
  6.     public static void main(String args[]) throws NumberFormatException,
  7.             IOException {
  8.  
  9.         BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
  10.         int t = Integer.parseInt(in.readLine());
  11.         while (t-- > 0) {
  12.             String[] num = new String[51];
  13.             num = in.readLine().split(" ");
  14.             int n = Integer.parseInt(num[0]);
  15.  
  16.             int[] a = new int[n];
  17.             for (int i = 0; i < n; i++) {
  18.                 a[i] = Integer.parseInt(num[i + 1]);
  19.             }
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement