@@ -0,0 +1,1025 @@
+import java.util.*;%0D%0A/**%0D%0A * What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?%0D%0A *%0D%0A * @author Tarantino O'Connor%0D%0A * @version 1 15.10.17%0D%0A */%0D%0Aclass Solution022%0D%0A%7B%0D%0A    public static void main(String%5B%5D args)%0D%0A    %7B%0D%0A        new Solution005();%0D%0A    %7D%0D%0A%0D%0A    public Solution022()%0D%0A    %7B%0D%0A    %09Scanner s = new Scanner(System.in);%0D%0A%09%09int countNames = s.nextInt();%0D%0A%09%09s.nextLine();%0D%0A%0D%0A%09%09ArrayList%3CString%3E names = new ArrayList%3CString%3E();%0D%0A%0D%0A%09%09for (int i = 0; i%3CcountNames; i++)%7B%0D%0A%09%09%09names.add(s.nextLine());%0D%0A%09%09%7D%0D%0A%09%09names.sort(String::compareTo);%0D%0A%0D%0A%09%09int testcases = s.nextInt();%0D%0A%09%09s.nextLine();%0D%0A%09%09%0D%0A%09%09for (int i = 0; i%3Ctestcases; i++)%7B%0D%0A%09%09%09String name = s.next();%0D%0A%09%09%09int namescore = 0;%0D%0A%09%09%09char%5B%5D ch = name.toCharArray();%0D%0A%09%09%09for (char c : ch)%7B%0D%0A%09%09%09%09int temp = (int)c;%0D%0A%09%09%09%09int temp_integer = 64;%0D%0A%09%09%09%09if(temp%3C=90 & temp%3E=65)%0D%0A%09%09%09%09%09namescore += (temp-temp_integer);%0D%0A%09%09%09%7D%0D%0A%09%09%09namescore = namescore*(names.indexOf(name)+1);%0D%0A%09%09%09System.out.println(namescore);%0D%0A%09%09%7D%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Add files via upload