728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
int solution(vector<int> array, int n) {
int answer = 0;
for (auto a:array)
if(a==n)answer++;
return answer;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
[프로그래머스] 옷가게 할인 받기 (0) | 2025.09.04 |
---|---|
[프로그래머스] 모음 제거 (0) | 2025.09.04 |
[프로그래머스] 특정 문자 제거하기 (0) | 2025.09.04 |
[프로그래머스] 제곱수 판별하기 (0) | 2025.09.04 |
[프로그래머스] 문자 반복 출력하기 (0) | 2025.09.04 |
댓글