프로그래머스 문제풀이
[프로그래머스] 피자 나눠 먹기 (1)
표자
2022. 12. 23. 10:32
728x90
반응형
function solution(n) {
return n%7 ===0? Math.floor(n / 7) : Math.floor(n / 7) +1;
}
728x90
반응형