Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B"Given a string s, determine if it contains any palindrome of length exactly 100 as a subsequence. If it has any, print any one of them. If it doesn't have any, print a palindrome that is a subsequence of s and is as long as possible. The only line of the input contains one string s of length n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xc2 xb7104) containing only lowercase English letters. If s contains a palindrome of length exactly 100 as a subsequence, print any palindrome of length 100 which is a subsequence of s. If s doesn't contain any palindromes of length exactly 100, print a palindrome that is a subsequence of s and is as long as possible. If there exists multiple answers, you are allowed to print any of them. A subsequence of a string is a string that can be derived from it by deleting some characters without changing the order of the remaining characters. A palindrome is a string that reads the same forward or backward."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
4242395 |
Misha100896 |
B |
Aug. 8, 2013, 9:15 a.m. |
OK |
Delphi |
TESTS |
72 |
62 |
27340800 |
|
1900 |
4234397 |
ruban |
B |
Aug. 5, 2013, 5:14 p.m. |
OK |
Delphi |
TESTS |
72 |
92 |
61440000 |
|
1900 |
4363434 |
IgorL |
B |
Aug. 28, 2013, 6:05 p.m. |
OK |
Delphi |
TESTS |
72 |
186 |
25804800 |
|
1900 |
4223271 |
Omelianenko |
B |
Aug. 3, 2013, 6:42 p.m. |
OK |
Delphi |
TESTS |
72 |
966 |
38297600 |
|
1900 |
4224074 |
Nik_Storm_2010 |
B |
Aug. 3, 2013, 7:31 p.m. |
OK |
FPC |
TESTS |
72 |
62 |
26624000 |
|
1900 |
35835847 |
__ShaW |
B |
March 2, 2018, 12:41 p.m. |
OK |
FPC |
TESTS |
72 |
62 |
29184000 |
|
1900 |
16870671 |
colrist |
B |
March 22, 2016, 12:55 p.m. |
OK |
FPC |
TESTS |
72 |
62 |
29798400 |
|
1900 |
4324172 |
pal3 |
B |
Aug. 22, 2013, 1:40 p.m. |
OK |
FPC |
TESTS |
72 |
62 |
54476800 |
|
1900 |
18441536 |
jinzhihan |
B |
June 14, 2016, 2:48 a.m. |
OK |
FPC |
TESTS |
72 |
92 |
27238400 |
|
1900 |
35866554 |
AslanX_X |
B |
March 3, 2018, 2:20 a.m. |
OK |
FPC |
TESTS |
72 |
92 |
38092800 |
|
1900 |
7438978 |
xindubawukong |
B |
Aug. 13, 2014, 5:14 a.m. |
OK |
FPC |
TESTS |
72 |
92 |
81612800 |
|
1900 |
4224345 |
Fedosik |
B |
Aug. 3, 2013, 7:50 p.m. |
OK |
FPC |
TESTS |
72 |
124 |
71372800 |
|
1900 |
4333344 |
ZeRoGerc |
B |
Aug. 24, 2013, 4:29 p.m. |
OK |
FPC |
TESTS |
72 |
156 |
27852800 |
|
1900 |
6633645 |
ghostmath |
B |
May 16, 2014, 1:22 a.m. |
OK |
FPC |
TESTS |
72 |
466 |
72601600 |
|
1900 |
4222646 |
E478 |
B |
Aug. 3, 2013, 6:05 p.m. |
OK |
GNU C |
TESTS |
72 |
30 |
64614400 |
|
1900 |
4222978 |
LayCurse |
B |
Aug. 3, 2013, 6:23 p.m. |
OK |
GNU C |
TESTS |
72 |
92 |
28262400 |
|
1900 |
4247469 |
mc_mosa |
B |
Aug. 9, 2013, 2:22 p.m. |
OK |
GNU C |
TESTS |
72 |
124 |
26828800 |
|
1900 |
4225998 |
BSBandme |
B |
Aug. 4, 2013, 3:45 a.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
1126400 |
|
1900 |
4224200 |
Jarekczek |
B |
Aug. 3, 2013, 7:40 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
2457600 |
|
1900 |
4229240 |
parina1 |
B |
Aug. 4, 2013, 5:30 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
16076800 |
|
1900 |
4227305 |
niux |
B |
Aug. 4, 2013, 9:20 a.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
19046400 |
|
1900 |
4224775 |
KrK |
B |
Aug. 3, 2013, 9:17 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
20582400 |
|
1900 |
4237686 |
khuongnd |
B |
Aug. 6, 2013, 4:58 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
25497600 |
|
1900 |
4222158 |
Ra16bit |
B |
Aug. 3, 2013, 5:40 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
26112000 |
|
1900 |
15742983 |
mdwudier |
B |
Feb. 2, 2016, 3:32 a.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
26316800 |
|
1900 |
14384925 |
bluefi |
B |
Nov. 20, 2015, 7:05 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
26624000 |
|
1900 |
4221802 |
wrong |
B |
Aug. 3, 2013, 5:25 p.m. |
OK |
GNU C++ |
TESTS |
72 |
30 |
26828800 |
|
1900 |
4231167 |
diego_v1 |
B |
Aug. 5, 2013, 4:36 a.m. |
OK |
GNU C++0x |
TESTS |
72 |
30 |
27955200 |
|
1900 |
6382749 |
JayYe |
B |
April 17, 2014, 7:27 a.m. |
OK |
GNU C++0x |
TESTS |
72 |
60 |
17715200 |
|
1900 |
6256020 |
vjudge5 |
B |
April 4, 2014, 6:21 a.m. |
OK |
GNU C++0x |
TESTS |
72 |
60 |
17715200 |
|
1900 |
6256029 |
vjudge4 |
B |
April 4, 2014, 6:22 a.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
17715200 |
|
1900 |
4221839 |
hex539 |
B |
Aug. 3, 2013, 5:27 p.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
25804800 |
|
1900 |
9561944 |
vjudge2 |
B |
Jan. 26, 2015, 3:17 p.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
27238400 |
|
1900 |
9561936 |
Alimol |
B |
Jan. 26, 2015, 3:16 p.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
27238400 |
|
1900 |
8866629 |
CaptainRouzbeh |
B |
Nov. 27, 2014, 6:53 a.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
27238400 |
|
1900 |
4231258 |
diego_v1 |
B |
Aug. 5, 2013, 5:01 a.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
27955200 |
|
1900 |
4222310 |
Xellos |
B |
Aug. 3, 2013, 5:48 p.m. |
OK |
GNU C++0x |
TESTS |
72 |
62 |
55091200 |
|
1900 |
26641160 |
maheralkassir |
B |
April 24, 2017, 1:08 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
30 |
29286400 |
|
1900 |
17131607 |
freebsdx |
B |
April 2, 2016, 2:15 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
30 |
30310400 |
|
1900 |
33149898 |
prof.TPC |
B |
Dec. 12, 2017, 9:27 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
30 |
102604800 |
|
1900 |
35826562 |
dqhungdl |
B |
March 2, 2018, 6:11 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
60 |
29286400 |
|
1900 |
43275523 |
OmarHashim |
B |
Sept. 22, 2018, 10:22 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
15462400 |
|
1900 |
11704817 |
hzwer |
B |
June 22, 2015, 4:56 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
26316800 |
|
1900 |
62118855 |
ArmanMohammadi |
B |
Oct. 8, 2019, 2:06 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
27033600 |
|
1900 |
19047380 |
hjj |
B |
July 12, 2016, 9:18 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
27033600 |
|
1900 |
18991051 |
anothervjudge |
B |
July 9, 2016, 7:42 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
27033600 |
|
1900 |
18972492 |
AshishYadav |
B |
July 8, 2016, 3:43 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
27033600 |
|
1900 |
26383192 |
rng_57 |
B |
April 15, 2017, 2:50 p.m. |
OK |
GNU C++14 |
TESTS |
72 |
30 |
28057600 |
|
1900 |
33149473 |
xxxxx |
B |
Dec. 12, 2017, 9:06 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
30 |
38195200 |
|
1900 |
35848160 |
Hoang_Cong |
B |
March 2, 2018, 4:55 p.m. |
OK |
GNU C++14 |
TESTS |
72 |
30 |
122675200 |
|
1900 |
39233433 |
wakaka |
B |
June 14, 2018, 6:49 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
60 |
16281600 |
|
1900 |
23642245 |
Ali.Pi |
B |
Jan. 8, 2017, 7:51 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
60 |
20992000 |
|
1900 |
29115217 |
vipghn4 |
B |
Aug. 2, 2017, 2:48 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
60 |
30310400 |
|
1900 |
23365078 |
hloya_ygrt |
B |
Dec. 27, 2016, 6:30 p.m. |
OK |
GNU C++14 |
TESTS |
72 |
60 |
30412800 |
|
1900 |
25703596 |
joyfun |
B |
March 22, 2017, 4:48 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
60 |
87654400 |
|
1900 |
33148387 |
Do_Re_Mi |
B |
Dec. 12, 2017, 8:14 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
60 |
162406400 |
|
1900 |
22109532 |
LAGBOYDaD3zZ |
B |
Nov. 8, 2016, 9:49 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
62 |
27238400 |
|
1900 |
48699320 |
yhchang3 |
B |
Jan. 22, 2019, 1:40 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
25804800 |
|
1900 |
61937034 |
Pippinpaddleopsicopolis |
B |
Oct. 5, 2019, 6:09 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
25907200 |
|
1900 |
69703680 |
bahakrut |
B |
Jan. 29, 2020, 2:59 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
27238400 |
|
1900 |
49160359 |
Excogitatoris |
B |
Jan. 29, 2019, 3:08 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
27443200 |
|
1900 |
48899163 |
vjudge4 |
B |
Jan. 24, 2019, 5:14 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
27545600 |
|
1900 |
48899122 |
pulsatio |
B |
Jan. 24, 2019, 5:14 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
27545600 |
|
1900 |
63958813 |
vjudge2 |
B |
Nov. 1, 2019, 3:50 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
28467200 |
|
1900 |
39455112 |
kotorin |
B |
June 21, 2018, 8:06 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
28467200 |
|
1900 |
50569340 |
jo_ulej |
B |
Feb. 27, 2019, 2:36 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
36249600 |
|
1900 |
61797196 |
Mahdi_Shokoufi |
B |
Oct. 3, 2019, 5:39 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
36454400 |
|
1900 |
4225001 |
autotaker |
B |
Aug. 3, 2013, 9:54 p.m. |
OK |
Haskell |
TESTS |
72 |
530 |
27340800 |
|
1900 |
5854347 |
atubo |
B |
Jan. 31, 2014, 6:33 a.m. |
OK |
Java 6 |
TESTS |
72 |
216 |
102400 |
|
1900 |
4223649 |
uwi |
B |
Aug. 3, 2013, 7:06 p.m. |
OK |
Java 6 |
TESTS |
72 |
248 |
52121600 |
|
1900 |
4223453 |
Quelloquialism |
B |
Aug. 3, 2013, 6:54 p.m. |
OK |
Java 6 |
TESTS |
72 |
280 |
14028800 |
|
1900 |
4320911 |
alibaba |
B |
Aug. 21, 2013, 4:54 p.m. |
OK |
Java 6 |
TESTS |
72 |
280 |
14233600 |
|
1900 |
4397775 |
lazzrov |
B |
Sept. 2, 2013, 2:59 p.m. |
OK |
Java 6 |
TESTS |
72 |
312 |
13004800 |
|
1900 |
4224708 |
coderbd |
B |
Aug. 3, 2013, 9:09 p.m. |
OK |
Java 6 |
TESTS |
72 |
342 |
141004800 |
|
1900 |
4223474 |
hiukim |
B |
Aug. 3, 2013, 6:55 p.m. |
OK |
Java 6 |
TESTS |
72 |
404 |
53043200 |
|
1900 |
4234324 |
hama-du |
B |
Aug. 5, 2013, 4:43 p.m. |
OK |
Java 6 |
TESTS |
72 |
842 |
49356800 |
|
1900 |
7689303 |
Fouzelddin |
B |
Sept. 5, 2014, 4:28 p.m. |
OK |
Java 7 |
TESTS |
72 |
218 |
102400 |
|
1900 |
4222225 |
yaro |
B |
Aug. 3, 2013, 5:44 p.m. |
OK |
Java 7 |
TESTS |
72 |
218 |
12083200 |
|
1900 |
4223667 |
ant.ermilov |
B |
Aug. 3, 2013, 7:07 p.m. |
OK |
Java 7 |
TESTS |
72 |
218 |
13619200 |
|
1900 |
4222130 |
Egor |
B |
Aug. 3, 2013, 5:39 p.m. |
OK |
Java 7 |
TESTS |
72 |
218 |
51814400 |
|
1900 |
4222203 |
chavit |
B |
Aug. 3, 2013, 5:43 p.m. |
OK |
Java 7 |
TESTS |
72 |
248 |
12492800 |
|
1900 |
4223013 |
sweiss |
B |
Aug. 3, 2013, 6:26 p.m. |
OK |
Java 7 |
TESTS |
72 |
248 |
13004800 |
|
1900 |
4222757 |
dusty.and.rusty |
B |
Aug. 3, 2013, 6:12 p.m. |
OK |
Java 7 |
TESTS |
72 |
248 |
13721600 |
|
1900 |
4310460 |
AbdelrahmanSaad |
B |
Aug. 19, 2013, 12:07 a.m. |
OK |
Java 7 |
TESTS |
72 |
248 |
51814400 |
|
1900 |
6683882 |
wadissimo |
B |
May 22, 2014, 10:20 p.m. |
OK |
Java 7 |
TESTS |
72 |
248 |
53760000 |
|
1900 |
4534881 |
ffao |
B |
Sept. 22, 2013, 7:04 a.m. |
OK |
Java 7 |
TESTS |
72 |
248 |
54272000 |
|
1900 |
50652746 |
hongquanntct |
B |
March 1, 2019, 6:16 p.m. |
OK |
Java 8 |
TESTS |
72 |
310 |
39116800 |
|
1900 |
10570214 |
vjudge1 |
B |
April 4, 2015, 6:57 a.m. |
OK |
Java 8 |
TESTS |
72 |
310 |
46694400 |
|
1900 |
50652639 |
hongquanntct |
B |
March 1, 2019, 6:14 p.m. |
OK |
Java 8 |
TESTS |
72 |
342 |
39116800 |
|
1900 |
50652316 |
hongquanntct |
B |
March 1, 2019, 6:06 p.m. |
OK |
Java 8 |
TESTS |
72 |
342 |
39116800 |
|
1900 |
50652190 |
hongquanntct |
B |
March 1, 2019, 6:03 p.m. |
OK |
Java 8 |
TESTS |
72 |
404 |
42598400 |
|
1900 |
16976939 |
owf147 |
B |
March 27, 2016, 5:50 p.m. |
OK |
Java 8 |
TESTS |
72 |
404 |
60211200 |
|
1900 |
32656897 |
LeontiBrechko |
B |
Nov. 25, 2017, 8:56 p.m. |
OK |
Java 8 |
TESTS |
72 |
404 |
61132800 |
|
1900 |
39447140 |
kocko |
B |
June 20, 2018, 10:39 p.m. |
OK |
Java 8 |
TESTS |
72 |
436 |
37888000 |
|
1900 |
4679182 |
antofik |
B |
Oct. 5, 2013, 9:08 a.m. |
OK |
Mono C# |
TESTS |
72 |
156 |
9216000 |
|
1900 |
4679146 |
antofik |
B |
Oct. 5, 2013, 9:03 a.m. |
OK |
MS C# |
TESTS |
72 |
124 |
9216000 |
|
1900 |
4234608 |
Guliash |
B |
Aug. 5, 2013, 6:57 p.m. |
OK |
MS C# |
TESTS |
72 |
156 |
54579200 |
|
1900 |
9278743 |
rmonzon |
B |
Dec. 26, 2014, 7:50 p.m. |
OK |
MS C# |
TESTS |
72 |
186 |
54476800 |
|
1900 |
4229340 |
QuantumKnight |
B |
Aug. 4, 2013, 5:55 p.m. |
OK |
MS C# |
TESTS |
72 |
592 |
62464000 |
|
1900 |
4230221 |
Cornelius |
B |
Aug. 4, 2013, 11:52 p.m. |
OK |
MS C# |
TESTS |
72 |
1902 |
72806400 |
|
1900 |
4230225 |
Cornelius |
B |
Aug. 4, 2013, 11:57 p.m. |
OK |
MS C# |
TESTS |
72 |
1902 |
72806400 |
|
1900 |
4230223 |
Cornelius |
B |
Aug. 4, 2013, 11:55 p.m. |
OK |
MS C# |
TESTS |
72 |
1934 |
72806400 |
|
1900 |
4230220 |
Cornelius |
B |
Aug. 4, 2013, 11:51 p.m. |
OK |
MS C# |
TESTS |
72 |
1934 |
73523200 |
|
1900 |
5353888 |
Tom. |
B |
Dec. 5, 2013, 12:24 p.m. |
OK |
MS C++ |
TESTS |
72 |
30 |
8908800 |
|
1900 |
4226371 |
NiuYiqiang |
B |
Aug. 4, 2013, 5:34 a.m. |
OK |
MS C++ |
TESTS |
72 |
30 |
26009600 |
|
1900 |
4226570 |
Im_too_old_for_this_shit |
B |
Aug. 4, 2013, 6:12 a.m. |
OK |
MS C++ |
TESTS |
72 |
30 |
27443200 |
|
1900 |
4222614 |
Ruslan |
B |
Aug. 3, 2013, 6:03 p.m. |
OK |
MS C++ |
TESTS |
72 |
30 |
48230400 |
|
1900 |
4222762 |
gvalentiny |
B |
Aug. 3, 2013, 6:12 p.m. |
OK |
MS C++ |
TESTS |
72 |
30 |
51404800 |
|
1900 |
33890889 |
newgate |
B |
Jan. 3, 2018, 6:17 p.m. |
OK |
MS C++ |
TESTS |
72 |
60 |
28979200 |
|
1900 |
4222700 |
Reshetnikov_Ivan |
B |
Aug. 3, 2013, 6:09 p.m. |
OK |
MS C++ |
TESTS |
72 |
62 |
16384000 |
|
1900 |
4222243 |
Milanin |
B |
Aug. 3, 2013, 5:45 p.m. |
OK |
MS C++ |
TESTS |
72 |
62 |
32768000 |
|
1900 |
4225143 |
akdal |
B |
Aug. 3, 2013, 10:39 p.m. |
OK |
MS C++ |
TESTS |
72 |
62 |
35225600 |
|
1900 |
4244662 |
P___ |
B |
Aug. 8, 2013, 7:17 p.m. |
OK |
MS C++ |
TESTS |
72 |
62 |
36556800 |
|
1900 |
66242753 |
jdbermeol |
B |
Dec. 3, 2019, 6:52 p.m. |
OK |
PyPy 3 |
TESTS |
72 |
1996 |
117145600 |
|
1900 |
4240895 |
limed |
B |
Aug. 7, 2013, 5:10 p.m. |
OK |
Scala |
TESTS |
72 |
842 |
51302400 |
|
1900 |
4226758 |
limed |
B |
Aug. 4, 2013, 6:55 a.m. |
OK |
Scala |
TESTS |
72 |
904 |
21401600 |
|
1900 |
4237689 |
limed |
B |
Aug. 6, 2013, 5 p.m. |
OK |
Scala |
TESTS |
72 |
936 |
52736000 |
|
1900 |
4226776 |
limed |
B |
Aug. 4, 2013, 6:58 a.m. |
OK |
Scala |
TESTS |
72 |
966 |
21401600 |
|
1900 |
4226826 |
limed |
B |
Aug. 4, 2013, 7:09 a.m. |
OK |
Scala |
TESTS |
72 |
1028 |
21299200 |
|
1900 |
4237678 |
limed |
B |
Aug. 6, 2013, 4:57 p.m. |
OK |
Scala |
TESTS |
72 |
1060 |
67584000 |
|
1900 |
4226820 |
limed |
B |
Aug. 4, 2013, 7:08 a.m. |
OK |
Scala |
TESTS |
72 |
1092 |
20684800 |
|
1900 |
remove filters
Back to search problems