class Solution { public int solution(int[][] board, int k) { int answer = 0; for(int i = 0; i < board.length; i++) { for(int j = 0; j < board[i].length; j++) { if( i + j
class Solution { public long solution(int a, int b) { long answer = 0; if(a < b) { for(int i = a; i
class Solution { public int solution(int a, int d, boolean[] included) { int answer = 0; for(int i = 0; i < included.length; i++) { if(included[i]) { answer += a; } a += d; } return answer; } }
class Solution { public int solution(int n) { int answer = 0; int num = 0; for(int i = 1; i
class Solution { public String solution(String my_string, int m, int c) { String answer = ""; for(int i = 0; i < my_string.length(); i++) { if (i == (c - 1)){ answer += String.valueOf(my_string.charAt(c - 1)); c += m; } } return answer; } }