class Solution { public int[] solution(int[] num_list) { int[] answer = new int [num_list.length]; int j = 0; for (int i = num_list.length-1; i >= 0; i--) { answer[j] = num_list[i]; j++; } return answer; } }
class Solution { public int solution(int n, int k) { int answer = 0; if ( n / 10 > 0) { int service = n / 10; answer = (n * 12000) + ((k-service) * 2000); } else { answer = (n * 12000) + (k * 2000); } return answer; } }
class Solution { public int[] solution(String[] strlist) { int[] answer = new int [strlist.length]; for(int i = 0; i < strlist.length; i++) { answer[i] = strlist[i].length(); } return answer; } }
class Solution { public double solution(int[] numbers) { double answer = 0; for(int i = 0; i < numbers.length; i++) { answer += numbers[i]; } return answer / numbers.length; } }
class Solution { public int solution(int n) { int answer = 0; for(int i = 1; i