문제:https://school.programmers.co.kr/learn/courses/30/lessons/388351
class Solution {
public int solution(int[] schedules, int[][] timelogs, int startday) {
int answer = 0;
for(int i = 0 ; i < schedules.length; i++){
int target = (schedules[i] / 100) * 60 + (schedules[i] % 100);
boolean check = true;
for(int j = 0; j < 7 ; j++){
// 토, 일 무시
if(startday == 7 && (j == 0 || j == 6)){
continue;
}else if(j == 6 - startday || j == 7 - startday){
continue;
}else{
int work = (timelogs[i][j] / 100) * 60 + (timelogs[i][j] % 100);
if(target + 10 < work){
//System.out.println(timelogs[i][j]);
check = false;
break;
}
}
}
if(check){
System.out.println(i);
answer++;
check = true;
}
}
return answer;
}
}
```