@@ -0,0 +1,1000 @@
+import java.util.*;%0Aimport java.math.*;%0Aimport java.io.*;%0A%0Apublic class Main%7B%0A%09static Scanner in;%0A%09//static BufferedReader in;%0A%09static PrintWriter out;%0A%09static StringTokenizer st;%0A%09static ArrayList%3CInteger%3E list;%0A%09static HashMap%3CInteger, Integer%3E freqTable;%0A%0A%09public static void main(String%5B%5D args) throws IOException%7B%0A%09%09in = new Scanner(System.in);%0A%09%09//in = new BufferedReader(new InputStreamReader(System.in));%0A%09%09out = new PrintWriter(System.out);%0A%0A%09%09int n = in.nextInt();%0A%09%09int ans = in.nextInt();%0A%09%09for(int i=1; i%3Cn; i++)%7B%0A%09%09%09ans = gcd(ans, in.nextInt());%0A%09%09%7D%0A%09%09out.println(ans*n);%0A%09%09out.flush();%0A%09%7D%0A%0A%09public static int gcd(int a, int b)%7B%0A%09%09return (b==0 ? a : gcd(b, a%25b));%0A%09%7D%0A%0A%09public static void print(int%5B%5D%5B%5D dp)%7B%0A%09%09for(int i=0;i%3Cdp.length;i++)%7B%0A%09%09%09for(int j=0;j%3Cdp%5Bi%5D.length; j++)%7B%0A%09%09%09%09System.out.print(%22%5B%22+dp%5Bi%5D%5Bj%5D+%22%5D%22);%0A%09%09%09%7DSystem.out.println();%0A%09%09%7D System.out.println();%0A%09%7D%0A%0A%09public static void print(LinkedList%5B%5D graph)%7B%0A%09%09for(LinkedList li : graph)%7B%0A%09%09%09System.out.println(li);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create 389A.java