728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
int solution(vector<int> array, int height) {
int answer = 0;
for(auto h : array)
{
if(h>height)
answer++;
}
return answer;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
[프로그래머스] 배열 자르기 (0) | 2025.09.03 |
---|---|
[프로그래머스] 삼각형의 완성조건 (1) (0) | 2025.09.03 |
[프로그래머스] 자릿수 더하기 (0) | 2025.09.03 |
[프로그래머스] 최댓값 만들기 (0) | 2025.09.03 |
[프로그래머스] 세균증식 (0) | 2025.09.03 |
댓글