[C++] 14889 : 스타트와 링크
https://www.acmicpc.net/problem/14889 14889번: 스타트와 링크 예제 2의 경우에 (1, 3, 6), (2, 4, 5)로 팀을 나누면 되고, 예제 3의 경우에는 (1, 2, 4, 5), (3, 6, 7, 8)로 팀을 나누면 된다. www.acmicpc.net #include #include using namespace std; int N; //인원수 int s[22][22]; //스탯 저장 테이블 bool v[22]; //true인 팀과 false인 팀 두부류 int ans=INT_MAX; //정답 void f(int team, int depth){ //team : 한쪽팀 인원 수, depth : 깊이 if(depth>N) return; //깊이 넘으면 종료 if(team..