Search found 1 match

by hano2a
Wed Mar 02, 2011 5:19 am
Forum: Volume 111 (11100-11199)
Topic: 11151 - Longest Palindrome
Replies: 65
Views: 40447

Re: 11151 - Longest Palindrome

Im getting TLE altough it takes no time in solving a 1000 letter palindrome, any ideas?? # include <iostream> #include <string> #include <math.h> #include <algorithm> using namespace std; string s; const int SIZE = 10001; int dp [SIZE][SIZE]; void Initialize () { for (int i = 0 ; i < SIZE ; i++) for...

Go to advanced search