[프로그래머스] 단체 사진 찍기
#include #define fastio cin.tie(0)->sync_with_stdio(0)#define MAX 5using namespace std;int answer;bool select[8];char ItoC[8] = {'A','C','F','J','M','N','R','T'};void DFS(int cnt, char arr[], vector data){ if(cnt == 8) { for(int i=0; i= dist) return; if(cond == '>' && abs(idx-iidx) data){ fastio; char arr[8] = {NULL, }; answer = 0; DFS(0, arr, data); retur..
2025. 4. 8.