https://school.programmers.co.kr/learn/courses/30/lessons/17683
프로그램 제작자
코드 중심 개발자를 고용하십시오. 배치 기반 위치 매칭. 프로그래머의 개발자별 프로필에 가입하고 기술 호환성이 좋은 회사와 연결하십시오.
Programmer.co.kr
function solution(m, musicinfos) {
m = m.replaceAll('C#', 'c').replaceAll('D#', 'd').replaceAll('F#', 'f').replaceAll('G#', 'g').replaceAll('A#', 'a');
return musicinfos.reduce((acc, data) => {
const (start, end, title, tempSheet) = data.split(',');
const getMin = (time) => parseInt(time(0)) * 60 + parseInt(time(1));
const playTime = getMin(end.split(':')) - getMin(start.split(':'));
const sheet = tempSheet.replaceAll('C#', 'c').replaceAll('D#', 'd').replaceAll('F#', 'f').replaceAll('G#', 'g').replaceAll('A#', 'a');
const newSheet = sheet.repeat(Math.floor(playTime / sheet.length)) + sheet.substr(0, Math.floor(playTime % sheet.length));
if (newSheet.includes(m) && playTime > acc.TIME) acc = { TITLE: title, TIME: playTime };
return acc;
}, { TITLE: "(None)", TIME: 0 }).TITLE;
}
GitHub – developereSHG/Algorithm-Baekjoon_Programmers: 백준과 프로그래머의 소스 코드
백준과 프로그래머의 소스 코드. GitHub에서 계정을 생성하여 DevelopeSHG/Algorithm-Baekjoon_Programmers 개발에 기여하십시오.
github.com
