package com.dw.pkuoj;

/*
 * Sample Input

9
5 2 1 5 2 1 5 2 1
4
1 2 3 4
0
Sample Output

6
5
 * */

public class Sticks_1011 {
	
	
	
	public static void main(String[] args) {
		
	}
}

package com.dw.pkuoj;

/*
 * Sample Input

9
5 2 1 5 2 1 5 2 1
4
1 2 3 4
0
Sample Output

6
5
 * */

public class Sticks_1011 {
	
	/*
	 * add psudocode here
	 * sum of all sticks
	 * 
	 * foo() {
	 * 
	 * 
	 * 		  
	 * }
	 * 
	 * Arrays.sort(array);
	 * 
	 * max = findMaxSize(array);
	 * 
	 * for(int i=max;i<=sum;i++) {
	 *    if(sum %i == 0) {
	 *       
	 *    }
	 * }
	 */
	
	public static void main(String[] args) {
		
		
	}
}

add psudocode for all sticks