class Solution { public int solution(int n) { int answer = 0; answer = (int) Math.ceil((double) n / 7); return answer; } }
class Solution { public String solution(String my_string, int n) { String answer = ""; int cnt = 0; for(int i = 0; i < my_string.length(); i++) { while(cnt < n) { answer += my_string.charAt(i); cnt ++; } cnt = 0; } return answer; } }
class Solution { public int solution(int[] sides) { int answer = 2; for(int i = 0; i sides[j]) { int tmp = sides[j]; sides[j] = sides[i]; sides[i] = tmp; } } } if(sides[2] < sides[0]+sides[1]) { answer = 1; } return answer; } }
class Solution { public int solution(int[] dot) { int answer = 0; if(dot[0] > 0 && dot [1] > 0) { answer = 1; } else if(dot[0] 0) { answer = 2; } else if(dot[0] 0 && dot [1] < 0) { answer = 4; } return answer; } }
class Solution { public int[] solution(int[] numbers, int num1, int num2) { int[] answer = new int [num2 - num1 + 1]; int idx= 0; for(int i = num1; i