카드 짝 맞추기 C++
https://programmers.co.kr/learn/courses/30/lessons/72415 코딩테스트 연습 - 카드 짝 맞추기 [[1,0,0,3],[2,0,0,0],[0,0,0,2],[3,0,1,0]] 1 0 14 [[3,0,0,2],[0,0,1,0],[0,1,0,0],[2,0,0,3]] 0 1 16 programmers.co.kr #include #include #include #include #include #include using namespace std; struct Number { int x, y; }; vector v[7]; int sz = 0; int answer = 987654321; int R, C; struct Move { int x, y; }; Move mv[4] = { ..
2022. 3. 6.