package programmers;
import java.util.Arrays;
public class FirstCodingTest {
public static void main(String[] args) {
Solution s = new Solution();
int[][] i = {{ 1, 0, 0 }, {1, 1, 0}, {1, 1, 0}, {1, 0, 1}, {1, 1, 0}, {0, 1, 1}};
s.solution(i,2);
// 0ë²ê°ì ê²½ì° 00 íìíê³ , 1ë²ì 10,12 2ë²ì 20, 21 3ë² 30,31 4ë² 40, 41, 5ë² 51,52
// = index = 4
// System.err.println(" test : " + solution(i));
}
// ì¸ë±ì¤ë¥¼ 구í´ì ì¸ë±ì¤ ë²í¸ ì«ìê° ì ì¼ ëì ê±¸ë¡ ã±, 기ê³ì ì«ìì ë°ë¼ì ë³ë ìì±í ì ìë ì ì¼ ì¥ë¹ê°ì를 구í¨
}
class Solution {
public int solution(int[][] needs, int r) {
int[] score = new int[3];
for(int i = 0; i