[프로그래머스]주사위의 개수

박예림·2023년 3월 9일
0

코테

목록 보기
50/132

class Solution {
    public int solution(int[] box, int n) {
        int answer = 1;
        for (int i =0; i<box.length; i++){
            answer *= (box[i]/n);
        }
        return answer;
    }
}```
profile
응애 나 아기개발자

0개의 댓글

Powered by GraphCDN, the GraphQL CDN