본문 바로가기
C++

[프로그래머스] 머쓱이보다 키 큰 사람

by 띰쥬 2025. 9. 3.
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

댓글