"프로그래머스 120845 주사위의 개수"의 두 판 사이의 차이

(새 문서: ==개요== {{프로그래머스|레벨=0|페이지=10}} * 프로그래머스 입문 캘린더 ==C++== <syntaxhighlight lang='cpp'> #include <string> #include <vector> using name...)
 
1번째 줄: 1번째 줄:
==개요==
==개요==
{{프로그래머스|레벨=0|페이지=10}}
{{프로그래머스|레벨=0|페이지=10}}
* [[프로그래머스 입문 캘린더]]


==C++==
==C++==

2023년 11월 11일 (토) 13:26 판

1 개요

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


2 C++

#include <string>
#include <vector>

using namespace std;

int solution(vector<int> box, int n) {
    return (box[0]/n)*(box[1]/n)*(box[2]/n);
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}