백준 1958번 C++
#include #include #include #include using namespace std; const int MAX = 101; string s1, s2, s3; int maxlong[MAX][MAX][MAX]; struct Move { int x, y, z; }; Move mv[7] = { {1,0,0}, {1,0,1}, {1,1,0}, {0,1,1}, {0,1,0}, {0,0,0}, {0,0,1} }; int maxstr(int i, int j, int k) { if (i >= s1.size() || j >= s2.size() || k >= s3.size()) return 0; int &answer = maxlong[i][j][k]; if (answer != -1) return answer..
2019. 8. 25.