Coding Test/프로그래머스
[프로그래머스/자바] 피자 나눠 먹기(1)
yurison
2023. 3. 29. 09:24
class Solution {
public int solution(int n) {
return n%7 > 0 ? n/7+1 : n/7;
}
}
class Solution {
public int solution(int n) {
return (n + 6) / 7;
}
}