728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
int solution(vector<int> box, int n) {
int answer = 1;
for(int i:box)
answer *= i/n;
return answer;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
[프로그래머스] 숨어있는 숫자의 덧셈 (1) (0) | 2025.09.05 |
---|---|
[프로그래머스] 문자열 정렬하기 (1) (0) | 2025.09.05 |
[프로그래머스] 가위 바위 보 (0) | 2025.09.05 |
[프로그래머스] 개미 군단 (0) | 2025.09.05 |
[프로그래머스] 직각삼각형 출력하기 (0) | 2025.09.04 |
댓글