Codeforces Global Round 7

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
1326 Codeforces Global Round 7 FINISHED False 9000 147194699 March 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12164 ) D1 Prefix-Suffix Palindrome (Easy version) PROGRAMMING hashing string suffix structures strings 1500

B'This is the easy version of the problem. The difference is the constraint on the sum of lengths of strings and the number of test cases. You can make hacks only if you solve all versions of this task. You are given a string s , consisting of lowercase English letters. Find the longest string, t , which satisfies the following conditions: The input consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 1000 ), the number of test cases. The next t lines each describe a test case. Each test case is a non-empty string s , consisting of lowercase English letters. It is guaranteed that the sum of lengths of strings over all test cases does not exceed 5000 . For each test case, print the longest string which satisfies the conditions described above. If there exists multiple possible solutions, print any of them. In the first test, the string s = "a" satisfies all conditions. In the second test, the string "abcdfdcba" satisfies all conditions, because: It can be proven that there does not exist a longer string which satisfies the conditions. In the fourth test, the string "c" is correct, because "c" = "c" + "" and a or b can be empty. The other possible solution for this test is "s". '...

Tutorials

74961

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73716521 Gassa D1 March 19, 2020, 4:15 p.m. OK D TESTS 82 109 13414400 1500
73817609 ruban D1 March 20, 2020, 5:43 p.m. OK Delphi TESTS 85 77 64204800 1500
73818918 ruban D1 March 20, 2020, 5:55 p.m. OK Delphi TESTS 85 514 64204800 1500
73745501 QuisVenator D1 March 19, 2020, 10:08 p.m. OK GNU C11 TESTS 84 31 5324800 1500
73719651 kernel.bin D1 March 19, 2020, 4:24 p.m. OK GNU C11 TESTS 82 46 0 1500
73795924 huang_c_c D1 March 20, 2020, 1:20 p.m. OK GNU C11 TESTS 85 46 102400 1500
73808836 goprone D1 March 20, 2020, 3:58 p.m. OK GNU C++11 TESTS 85 31 0 1500
73807737 dhana_sekar D1 March 20, 2020, 3:41 p.m. OK GNU C++11 TESTS 85 31 0 1500
73805626 Josephus D1 March 20, 2020, 3:17 p.m. OK GNU C++11 TESTS 85 31 0 1500
73803402 dlz666 D1 March 20, 2020, 2:50 p.m. OK GNU C++11 TESTS 85 31 0 1500
73799203 BhaviD D1 March 20, 2020, 1:58 p.m. OK GNU C++11 TESTS 85 31 0 1500
73795327 vjudge4 D1 March 20, 2020, 1:14 p.m. OK GNU C++11 TESTS 85 31 0 1500
73764970 IbraheemJanajreh D1 March 20, 2020, 6:16 a.m. OK GNU C++11 TESTS 85 31 0 1500
73809101 LEOLEI D1 March 20, 2020, 4:02 p.m. OK GNU C++11 TESTS 85 31 0 1500
73813407 LEOLEI D1 March 20, 2020, 5:04 p.m. OK GNU C++11 TESTS 85 31 0 1500
73821140 hnust_huangguanhao D1 March 20, 2020, 6:15 p.m. OK GNU C++11 TESTS 85 31 0 1500
73719013 _blank D1 March 19, 2020, 4:22 p.m. OK GNU C++14 TESTS 82 30 204800 1500
73782384 ciphercodiac0812 D1 March 20, 2020, 10:24 a.m. OK GNU C++14 TESTS 85 31 0 1500
73774350 AakashKr D1 March 20, 2020, 8:28 a.m. OK GNU C++14 TESTS 85 31 0 1500
73772897 tamarip D1 March 20, 2020, 8:09 a.m. OK GNU C++14 TESTS 85 31 0 1500
73768666 goelvibhu D1 March 20, 2020, 7:08 a.m. OK GNU C++14 TESTS 85 31 0 1500
73764393 vikramadityasinghkadian8 D1 March 20, 2020, 6:08 a.m. OK GNU C++14 TESTS 85 31 0 1500
73763915 Setha D1 March 20, 2020, 6:01 a.m. OK GNU C++14 TESTS 85 31 0 1500
73782551 ciphercodiac0812 D1 March 20, 2020, 10:26 a.m. OK GNU C++14 TESTS 85 31 0 1500
73799914 ro777 D1 March 20, 2020, 2:08 p.m. OK GNU C++14 TESTS 85 31 0 1500
73789086 bhanushali D1 March 20, 2020, 11:58 a.m. OK GNU C++14 TESTS 85 31 0 1500
73741753 abhinavvv306 D1 March 19, 2020, 8:58 p.m. OK GNU C++17 TESTS 84 30 204800 1500
73719613 Andrija D1 March 19, 2020, 4:24 p.m. OK GNU C++17 TESTS 82 30 204800 1500
73785414 ayushheritage18 D1 March 20, 2020, 11:10 a.m. OK GNU C++17 TESTS 85 30 204800 1500
73749729 Thuleanx D1 March 20, 2020, 12:24 a.m. OK GNU C++17 TESTS 85 30 204800 1500
73749032 msi_deadman D1 March 20, 2020, 12:01 a.m. OK GNU C++17 TESTS 85 30 204800 1500
73715481 farhanshahoriar D1 March 19, 2020, 4:12 p.m. OK GNU C++17 TESTS 82 30 307200 1500
73713653 ollpu D1 March 19, 2020, 4:08 p.m. OK GNU C++17 TESTS 82 30 12185600 1500
73806426 tsaumitra01 D1 March 20, 2020, 3:26 p.m. OK GNU C++17 TESTS 85 31 0 1500
73791546 weather911 D1 March 20, 2020, 12:27 p.m. OK GNU C++17 TESTS 85 31 0 1500
73810928 Zerato D1 March 20, 2020, 4:32 p.m. OK GNU C++17 TESTS 85 31 0 1500
73829605 vovanstrr D1 March 20, 2020, 7:49 p.m. OK GNU C++17 (64) TESTS 85 31 409600 1500
73825368 neal D1 March 20, 2020, 6:57 p.m. OK GNU C++17 (64) TESTS 85 46 3891200 1500
73828572 41kabay D1 March 20, 2020, 7:35 p.m. OK GNU C++17 (64) TESTS 85 46 25497600 1500
73753966 synapse D1 March 20, 2020, 2:43 a.m. OK Go TESTS 85 46 102400 1500
73741118 Jughead D1 March 19, 2020, 8:45 p.m. OK Go TESTS 84 46 23040000 1500
73726377 badcwGO D1 March 19, 2020, 4:44 p.m. OK Go TESTS 82 61 0 1500
73781254 polyakoff D1 March 20, 2020, 10:07 a.m. OK Java 11 TESTS 85 187 0 1500
73715432 jenish9599 D1 March 19, 2020, 4:12 p.m. OK Java 11 TESTS 82 217 0 1500
73751930 aswals8991 D1 March 20, 2020, 1:38 a.m. OK Java 11 TESTS 85 217 0 1500
73721167 sakt_coder D1 March 19, 2020, 4:28 p.m. OK Java 11 TESTS 82 218 0 1500
73720192 noahlewis.ca D1 March 19, 2020, 4:25 p.m. OK Java 11 TESTS 82 218 0 1500
73788760 Captain_nick D1 March 20, 2020, 11:54 a.m. OK Java 11 TESTS 85 233 0 1500
73713828 Leewings D1 March 19, 2020, 4:08 p.m. OK Java 11 TESTS 82 233 0 1500
73709599 mpanyavin D1 March 19, 2020, 3:57 p.m. OK Java 11 TESTS 82 233 4915200 1500
73766038 abhi123valani D1 March 20, 2020, 6:30 a.m. OK Java 11 TESTS 85 234 204800 1500
73755289 athenawang123 D1 March 20, 2020, 3:18 a.m. OK Java 11 TESTS 85 249 0 1500
73818938 laxit_y D1 March 20, 2020, 5:55 p.m. OK Java 8 TESTS 85 124 0 1500
73797124 an09mous D1 March 20, 2020, 1:34 p.m. OK Java 8 TESTS 85 124 0 1500
73791289 rr459595 D1 March 20, 2020, 12:24 p.m. OK Java 8 TESTS 85 124 0 1500
73787861 nalin_1000101 D1 March 20, 2020, 11:43 a.m. OK Java 8 TESTS 85 124 0 1500
73786784 js9556 D1 March 20, 2020, 11:28 a.m. OK Java 8 TESTS 85 124 0 1500
73775465 bluesky111 D1 March 20, 2020, 8:44 a.m. OK Java 8 TESTS 85 124 0 1500
73767841 Mildog D1 March 20, 2020, 6:56 a.m. OK Java 8 TESTS 85 124 0 1500
73763405 aman28rwt D1 March 20, 2020, 5:54 a.m. OK Java 8 TESTS 85 124 0 1500
73762050 amolpratap007 D1 March 20, 2020, 5:32 a.m. OK Java 8 TESTS 85 124 0 1500
73753549 yuruiyin D1 March 20, 2020, 2:31 a.m. OK Java 8 TESTS 85 124 0 1500
73726007 AsuraPro D1 March 19, 2020, 4:43 p.m. OK Kotlin TESTS 82 140 0 1500
73703609 Hakiobo D1 March 19, 2020, 3:43 p.m. OK Kotlin TESTS 82 140 102400 1500
73704005 koboshi D1 March 19, 2020, 3:44 p.m. OK Kotlin TESTS 82 155 0 1500
73753364 cmplx-xyttmt D1 March 20, 2020, 2:25 a.m. OK Kotlin TESTS 85 155 102400 1500
73745655 abdukodir D1 March 19, 2020, 10:11 p.m. OK Kotlin TESTS 84 156 0 1500
73757757 Spheniscine D1 March 20, 2020, 4:15 a.m. OK Kotlin TESTS 85 156 0 1500
73743455 Hakiobo D1 March 19, 2020, 9:24 p.m. OK Kotlin TESTS 84 170 819200 1500
73724547 Schacher97 D1 March 19, 2020, 4:38 p.m. OK Kotlin TESTS 82 171 0 1500
73724516 jonas.havelka.42 D1 March 19, 2020, 4:38 p.m. OK Kotlin TESTS 82 171 0 1500
73745293 songsinger D1 March 19, 2020, 10:03 p.m. OK Kotlin TESTS 84 171 102400 1500
73767066 de_loo D1 March 20, 2020, 6:45 a.m. OK Mono C# TESTS 85 62 102400 1500
73723666 hloya D1 March 19, 2020, 4:36 p.m. OK Mono C# TESTS 82 78 3072000 1500
73704278 mban259 D1 March 19, 2020, 3:44 p.m. OK Mono C# TESTS 82 156 25292800 1500
73702951 hibatibati D1 March 19, 2020, 3:41 p.m. OK Mono C# TESTS 82 701 12185600 1500
73716748 Spirit_of_the_moon D1 March 19, 2020, 4:16 p.m. OK MS C++ TESTS 82 31 102400 1500
73726708 seh631638554 D1 March 19, 2020, 4:45 p.m. OK MS C++ TESTS 82 31 409600 1500
73733023 VagrantAC D1 March 19, 2020, 5:02 p.m. OK MS C++ TESTS 82 31 11059200 1500
73711038 lxhgww D1 March 19, 2020, 4:01 p.m. OK MS C++ TESTS 82 31 13209600 1500
73743170 Flighter D1 March 19, 2020, 9:20 p.m. OK MS C++ TESTS 84 31 17100800 1500
73716374 tarattata1 D1 March 19, 2020, 4:15 p.m. OK MS C++ TESTS 82 46 1024000 1500
73725022 _Ani D1 March 19, 2020, 4:40 p.m. OK MS C++ 2017 TESTS 82 31 102400 1500
73704529 grey D1 March 19, 2020, 3:45 p.m. OK MS C++ 2017 TESTS 82 31 307200 1500
73772226 mpoleg D1 March 20, 2020, 7:58 a.m. OK MS C++ 2017 TESTS 85 31 307200 1500
73756868 iamRajnish D1 March 20, 2020, 3:55 a.m. OK MS C++ 2017 TESTS 85 31 307200 1500
73732875 tepa46 D1 March 19, 2020, 5:02 p.m. OK MS C++ 2017 TESTS 82 31 307200 1500
73728052 D_Jet D1 March 19, 2020, 4:49 p.m. OK MS C++ 2017 TESTS 82 31 307200 1500
73715854 60D9 D1 March 19, 2020, 4:13 p.m. OK MS C++ 2017 TESTS 82 31 307200 1500
73725070 PrideBlack D1 March 19, 2020, 4:40 p.m. OK MS C++ 2017 TESTS 82 31 409600 1500
73784183 LeBronGod D1 March 20, 2020, 10:51 a.m. OK MS C++ 2017 TESTS 85 31 512000 1500
73832761 danilgrig D1 March 20, 2020, 8:33 p.m. OK MS C++ 2017 TESTS 85 46 102400 1500
73703126 youness.amhaouch D1 March 19, 2020, 3:42 p.m. OK PyPy 2 TESTS 82 171 1843200 1500
73703352 wolffd D1 March 19, 2020, 3:42 p.m. OK PyPy 2 TESTS 82 186 1945600 1500
73712360 bcollet D1 March 19, 2020, 4:04 p.m. OK PyPy 2 TESTS 82 187 1331200 1500
73791641 anshuman16423 D1 March 20, 2020, 12:28 p.m. OK PyPy 2 TESTS 85 202 1228800 1500
73715142 pajenegod D1 March 19, 2020, 4:11 p.m. OK PyPy 2 TESTS 82 233 4198400 1500
73742636 kabeer27 D1 March 19, 2020, 9:12 p.m. OK PyPy 2 TESTS 84 234 1945600 1500
73722551 Pyar.Mahobat.Dhoka.Hai D1 March 19, 2020, 4:32 p.m. OK PyPy 2 TESTS 82 248 3276800 1500
73802004 hritik3878 D1 March 20, 2020, 2:32 p.m. OK PyPy 2 TESTS 85 249 512000 1500
73709206 Mukundan314 D1 March 19, 2020, 3:56 p.m. OK PyPy 2 TESTS 82 296 3686400 1500
73751670 erickjohnross D1 March 20, 2020, 1:29 a.m. OK PyPy 3 TESTS 85 156 2048000 1500
73759052 anishde85 D1 March 20, 2020, 4:42 a.m. OK PyPy 3 TESTS 85 170 2662400 1500
73750934 HeavensC D1 March 20, 2020, 1:03 a.m. OK PyPy 3 TESTS 85 171 2355200 1500
73777051 anishde85 D1 March 20, 2020, 9:05 a.m. OK PyPy 3 TESTS 85 186 1740800 1500
73731513 nandini18056 D1 March 19, 2020, 4:59 p.m. OK PyPy 3 TESTS 82 186 2252800 1500
73724608 a0976531005 D1 March 19, 2020, 4:39 p.m. OK PyPy 3 TESTS 82 186 2662400 1500
73776886 walborn D1 March 20, 2020, 9:02 a.m. OK PyPy 3 TESTS 85 186 2867200 1500
73727898 vinuthegr8 D1 March 19, 2020, 4:48 p.m. OK PyPy 3 TESTS 82 187 2662400 1500
73757075 Shankhadeep D1 March 20, 2020, 4:01 a.m. OK PyPy 3 TESTS 85 187 3174400 1500
73715957 aberent D1 March 19, 2020, 4:13 p.m. OK PyPy 3 TESTS 82 187 3276800 1500
73708833 nwi D1 March 19, 2020, 3:55 p.m. OK Python 2 TESTS 82 202 102400 1500
73719134 mooseq D1 March 19, 2020, 4:22 p.m. OK Python 2 TESTS 82 217 1433600 1500
73772391 pratyush7563 D1 March 20, 2020, 8:01 a.m. OK Python 3 TESTS 85 124 512000 1500
73758777 orazbek D1 March 20, 2020, 4:37 a.m. OK Python 3 TESTS 85 124 512000 1500
73709575 Splend1dChan D1 March 19, 2020, 3:57 p.m. OK Python 3 TESTS 82 124 1638400 1500
73721891 krish237 D1 March 19, 2020, 4:30 p.m. OK Python 3 TESTS 82 139 512000 1500
73727641 mkawa2 D1 March 19, 2020, 4:48 p.m. OK Python 3 TESTS 82 140 512000 1500
73803652 Sharma__Vipul D1 March 20, 2020, 2:53 p.m. OK Python 3 TESTS 85 155 614400 1500
73726230 Cat8ra D1 March 19, 2020, 4:43 p.m. OK Python 3 TESTS 82 155 614400 1500
73720630 plusplus6408 D1 March 19, 2020, 4:27 p.m. OK Python 3 TESTS 82 155 614400 1500
73811846 enraged D1 March 20, 2020, 4:44 p.m. OK Python 3 TESTS 85 155 716800 1500
73768652 bhavik07 D1 March 20, 2020, 7:08 a.m. OK Python 3 TESTS 85 155 716800 1500
73779778 rustafarian D1 March 20, 2020, 9:46 a.m. OK Rust TESTS 85 31 102400 1500
73778459 rustafarian D1 March 20, 2020, 9:26 a.m. OK Rust TESTS 85 31 102400 1500
73778409 rustafarian D1 March 20, 2020, 9:26 a.m. OK Rust TESTS 85 31 102400 1500
73753133 rustafarian D1 March 20, 2020, 2:18 a.m. OK Rust TESTS 85 61 102400 1500
73742463 rustafarian D1 March 19, 2020, 9:10 p.m. OK Rust TESTS 84 61 102400 1500
73753937 rustafarian D1 March 20, 2020, 2:42 a.m. OK Rust TESTS 85 62 102400 1500
73753686 rustafarian D1 March 20, 2020, 2:35 a.m. OK Rust TESTS 85 62 102400 1500
73743489 rustafarian D1 March 19, 2020, 9:25 p.m. OK Rust TESTS 84 62 102400 1500
73743127 rustafarian D1 March 19, 2020, 9:20 p.m. OK Rust TESTS 84 77 102400 1500
73753101 rustafarian D1 March 20, 2020, 2:17 a.m. OK Rust TESTS 85 93 204800 1500
73727398 wrick D1 March 19, 2020, 4:47 p.m. OK Scala TESTS 82 795 0 1500

remove filters

Back to search problems