Skip to content

Instantly share code, notes, and snippets.

@arikrak
Created March 17, 2013 18:52
Show Gist options
  • Save arikrak/5183037 to your computer and use it in GitHub Desktop.
Save arikrak/5183037 to your computer and use it in GitHub Desktop.
import java.util.*;
class Solution {
static void doStuff(int[] ar){
}
static void printArray(int[] ar) {
for(int n: ar){
System.out.print(n+" ");
}
System.out.println("");
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int t = in.nextInt();
for(int c=0;c<t;c++){
int n = in.nextInt();
int[] ar = new int[n];
for(int i=0;i<n;i++){
ar[i]=in.nextInt();
}
doStuff(ar);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment