Educational Codeforces Round 163 (Rated for Div. 2)

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.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1948 Educational Codeforces Round 163 (Rated for Div. 2) FINISHED False 7200 26666663 March 15, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9783 ) D Tandem Repeats? PROGRAMMING brute force dp strings two pointers

B"You are given a string s , consisting of lowercase Latin letters and/or question marks. A tandem repeat is a string of an even length such that its first half is equal to its second half. A string a is a substring of a string b if a can be obtained from b by the deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end. Your goal is to replace each question mark with some lowercase Latin letter in such a way that the length of the longest substring that is a tandem repeat is maximum possible. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of testcases. The only line of each testcase contains a string s ( 1 <= |s| <= 5000 ), consisting only of lowercase Latin letters and/or question marks. The total length of the strings over all testcases doesn't exceed 5000 . For each testcase, print a single integer -- the maximum length of the longest substring that is a tandem repeat after you replace each question mark in the string with some lowercase Latin letter. If it's impossible to make any tandem repeat substrings in the string, print 0 . "...

Tutorials

Educational Codeforces Round 163 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
251551710 Shihab_Hossain_38 D March 15, 2024, 5:36 p.m. OK C# 10 TESTS 10 62 0
251594838 _HossamYehia_ D March 16, 2024, 1:16 a.m. OK C++14 (GCC 6-32) TESTS 10 30 204800
251608280 MJSoto123 D March 16, 2024, 4:24 a.m. OK C++14 (GCC 6-32) TESTS 10 31 0
251593698 forest1145141919810 D March 16, 2024, 12:56 a.m. OK C++14 (GCC 6-32) TESTS 10 31 0
251603752 Li_Naraka D March 16, 2024, 3:27 a.m. OK C++14 (GCC 6-32) TESTS 10 31 102400
251594625 _HossamYehia_ D March 16, 2024, 1:12 a.m. OK C++14 (GCC 6-32) TESTS 10 31 102400
251611062 shabbyM D March 16, 2024, 4:56 a.m. OK C++14 (GCC 6-32) TESTS 11 46 0
251609197 KhoaDuy D March 16, 2024, 4:35 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0
251600934 SereSia D March 16, 2024, 2:50 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0
251597134 Yurily D March 16, 2024, 1:54 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0
251596290 Grammar_hbw D March 16, 2024, 1:40 a.m. OK C++14 (GCC 6-32) TESTS 10 46 0
251567588 stup_bitch D March 15, 2024, 7:38 p.m. OK C++17 (GCC 7-32) TESTS 10 15 0
251577467 Khaled-Ramadan D March 15, 2024, 8:57 p.m. OK C++17 (GCC 7-32) TESTS 10 15 102400
251618621 wyf0722 D March 16, 2024, 5:47 a.m. OK C++17 (GCC 7-32) TESTS 11 31 0
251618469 shailesh_2583 D March 16, 2024, 5:46 a.m. OK C++17 (GCC 7-32) TESTS 11 31 0
251615614 ishrak26 D March 16, 2024, 5:28 a.m. OK C++17 (GCC 7-32) TESTS 11 31 0
251610722 _chroneZ D March 16, 2024, 4:52 a.m. OK C++17 (GCC 7-32) TESTS 11 31 0
251609303 kuguadawang D March 16, 2024, 4:36 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
251607350 Actium D March 16, 2024, 4:12 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
251606276 lalala. D March 16, 2024, 3:58 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
251604718 HHU_fl D March 16, 2024, 3:39 a.m. OK C++17 (GCC 7-32) TESTS 10 31 0
251557919 ruban D March 15, 2024, 6:18 p.m. OK Delphi TESTS 10 233 125337600
251620735 tkddn5623 D March 16, 2024, 6 a.m. OK GNU C11 TESTS 11 46 307200
251594458 1435730 D March 16, 2024, 1:09 a.m. OK GNU C11 TESTS 10 46 307200
251619955 i9_6900k D March 16, 2024, 5:55 a.m. OK GNU C11 TESTS 11 46 100454400
251620432 i9_6900k D March 16, 2024, 5:58 a.m. OK GNU C11 TESTS 11 108 100556800
251605248 Your6QwQ D March 16, 2024, 3:46 a.m. OK GNU C11 TESTS 10 343 307200
251607117 north_069 D March 16, 2024, 4:09 a.m. OK Go TESTS 10 46 102400
251603543 nguyenquocthao00 D March 16, 2024, 3:24 a.m. OK Go TESTS 10 46 204800
251566878 SlayerS D March 15, 2024, 7:32 p.m. OK Go TESTS 10 62 0
251557167 SlayerS D March 15, 2024, 6:13 p.m. OK Go TESTS 10 546 0
251591891 drdilyor D March 16, 2024, 12:23 a.m. OK Haskell TESTS 10 78 0
251548542 SamyajitDas D March 15, 2024, 5:16 p.m. OK Java 21 TESTS 10 249 0
251611784 PREMM_DESAI D March 16, 2024, 5:02 a.m. OK Java 21 TESTS 11 280 0
251551306 ChongQY D March 15, 2024, 5:33 p.m. OK Java 21 TESTS 10 280 307200
251608254 mapleKing D March 16, 2024, 4:23 a.m. OK Java 21 TESTS 10 311 204800
251556337 Akash_Sardar D March 15, 2024, 6:07 p.m. OK Java 21 TESTS 10 327 2560000
251569152 dk_g D March 15, 2024, 7:51 p.m. OK Java 21 TESTS 10 342 307200
251607682 jinfeng123321 D March 16, 2024, 4:16 a.m. OK Java 21 TESTS 10 342 409600
251587646 Shiva1102 D March 15, 2024, 10:58 p.m. OK Java 21 TESTS 10 358 307200
251581150 susvant D March 15, 2024, 9:31 p.m. OK Java 21 TESTS 10 374 0
251584053 28leoleo28 D March 15, 2024, 10:03 p.m. OK Java 21 TESTS 10 374 144281600
251611325 Sumitsingh7 D March 16, 2024, 4:59 a.m. OK Java 8 TESTS 11 109 5734400
251599146 optimus1369 D March 16, 2024, 2:24 a.m. OK Java 8 TESTS 10 124 0
251610922 tirthgohil1410 D March 16, 2024, 4:55 a.m. OK Java 8 TESTS 11 140 0
251570165 MagentaCobra D March 15, 2024, 8 p.m. OK Java 8 TESTS 10 140 0
251612023 shubham202012 D March 16, 2024, 5:04 a.m. OK Java 8 TESTS 11 170 0
251589954 duyipeng D March 15, 2024, 11:43 p.m. OK Java 8 TESTS 10 171 0
251551378 Dhruvin_Savla D March 15, 2024, 5:33 p.m. OK Java 8 TESTS 10 171 0
251548740 MintCat D March 15, 2024, 5:17 p.m. OK Java 8 TESTS 10 171 0
251564974 formidablechief27 D March 15, 2024, 7:17 p.m. OK Java 8 TESTS 10 171 38604800
251615435 nomadicjuggrnaut D March 16, 2024, 5:27 a.m. OK Java 8 TESTS 11 311 142028800
251551653 Shihab_Hossain_38 D March 15, 2024, 5:35 p.m. OK Mono C# TESTS 10 78 0
251548643 OLOGY D March 15, 2024, 5:16 p.m. OK PyPy 2 TESTS 10 124 512000
251568087 infinitix D March 15, 2024, 7:43 p.m. OK PyPy 3 TESTS 10 389 7372800
251588846 lebron87 D March 15, 2024, 11:21 p.m. OK PyPy 3 TESTS 10 624 114790400
251588853 lebron87 D March 15, 2024, 11:21 p.m. OK PyPy 3 TESTS 10 873 114688000
251588970 lebron87 D March 15, 2024, 11:23 p.m. OK PyPy 3 TESTS 10 920 114380800
251619040 gardengnome D March 16, 2024, 5:49 a.m. OK PyPy 3-64 TESTS 11 109 2252800
251619582 gardengnome D March 16, 2024, 5:53 a.m. OK PyPy 3-64 TESTS 11 124 2252800
251551179 edugong D March 15, 2024, 5:32 p.m. OK PyPy 3-64 TESTS 10 155 5734400
251546131 maroo1234 D March 15, 2024, 5:03 p.m. OK PyPy 3-64 TESTS 10 155 6553600
251586936 samchen123 D March 15, 2024, 10:46 p.m. OK PyPy 3-64 TESTS 10 170 2048000
251579741 Tanz D March 15, 2024, 9:18 p.m. OK PyPy 3-64 TESTS 10 171 4096000
251596379 leijun D March 16, 2024, 1:42 a.m. OK PyPy 3-64 TESTS 10 171 5120000
251547211 hushbek_2009 D March 15, 2024, 5:09 p.m. OK PyPy 3-64 TESTS 10 171 6553600
251554537 abcsumits D March 15, 2024, 5:54 p.m. OK PyPy 3-64 TESTS 10 186 4710400
251546746 ug201310015 D March 15, 2024, 5:06 p.m. OK PyPy 3-64 TESTS 10 186 6246400
251606000 rajesh_sv D March 16, 2024, 3:55 a.m. OK Python 3 TESTS 10 1794 409600
251572578 sahil.joshi D March 15, 2024, 8:18 p.m. OK Python 3 TESTS 10 1824 0

remove filters

Back to search problems