문제 : 사각형의 3점이 주어졌을 떄 나머지 한점 구하는 방법
#include <iostream>
#include <vector>
using namespace std;
vector<int> solution(vector<vector<int> > v) {
//vector<vector<int> >의 값은 다음과 같이 읽어올 수 있습니다.
cout << v[1][0] << " ";
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
if(v[i][0]!=v[j][0]){
}
}
}
vector<int> ans;
return ans;
}
'ALGORITHM' 카테고리의 다른 글
프로그래머스_카카오프렌즈 컬러링 북 (0) | 2017.09.16 |
---|---|
프로그래머스_카카오_문제4 (0) | 2017.09.14 |
[?]프로그래머스_카카오_데모2 (0) | 2017.09.12 |
프로그래머스_카카오_데모1 (0) | 2017.09.11 |
BFS_너비우선탐색 (0) | 2017.09.10 |