[알고리즘] 백준 10942 - 팰린드롬? #include using namespace std;int N, M;int Arr[2001];bool DP[2001][2001];void solve(){ for(int i=1; i> N; for(int i=1; i> Arr[i]; } solve(); cin >> M; int s, e; for(int i=0; i> s >> e; cout 알고리즘 2024.08.01