문제 링크입니다: https://www.acmicpc.net/problem/5015 Algospot Wildcard(https://jaimemin.tistory.com/315)와 동일한 문제였습니다. #include #include #include #include #include using namespace std; const int MAX = 100 + 1; int N; string P, S; int cache[MAX][MAX]; int func(int pIdx, int sIdx) { int &result = cache[pIdx][sIdx]; if (result != -1) return result; //둘이 일치하면 if (pIdx < P.size() && sIdx < S.size() && P[pId..