728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
int solution(vector<string> s1, vector<string> s2) {
int answer = 0;
for(auto one : s1)
{
for(auto two : s2)
{
if(one==two)
answer++;
}
}
return answer;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
[프로그래머스] n의 배수 고르기 (0) | 2025.09.04 |
---|---|
[프로그래머스] 순서쌍의 개수 (0) | 2025.09.04 |
[프로그래머스] 점의 위치 구하기 (0) | 2025.09.04 |
[프로그래머스] 배열 자르기 (0) | 2025.09.03 |
[프로그래머스] 삼각형의 완성조건 (1) (0) | 2025.09.03 |
댓글