Codeforces Round #427 (Div. 2), problem: (D) Palindromic characteristics Solution In C/C++

By |2017-08-05T21:42:19+00:00August 5th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <stdio.h> #include <string.h> #define N 5000 int main() { static char cc[N]; static int dp[N][N], kk[N + 1]; int n, i, j; scanf("%s", cc); n = strlen(cc); for (i = 0; i < n; i++) { dp[i][i] = 1; if (i + 1 [...]