피자나눠먹기3(혼자힘으로 잘푼케이스)

Psj·2일 전
0

코딩테스트

목록 보기
24/30


내풀이

class Solution {
    public int solution(int slice, int n) {
        int answer = n%slice>0 ? (n/slice)+1 : n/slice;
        return answer;
    }
}
profile
Software Developer

0개의 댓글

관련 채용 정보