Testing Round 19 (Div. 3)

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
2010 Testing Round 19 (Div. 3) FINISHED False 2700 51528323 Aug. 28, 2024, 8:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 4562 ) C2 Message Transmission Error (hard version) PROGRAMMING hashing strings two pointers 1700

This is a more difficult version of the problem. It differs from the easy one only by the constraints. At the Berland State University, the local network between servers does not always operate without errors. When transmitting two identical messages consecutively, an error may occur, resulting in the two messages merging into one. In this merging, the end of the first message coincides with the beginning of the second. Of course, the merging can only occur at identical characters. The length of the merging must be a positive number less than the length of the message text. For example, when transmitting two messages " abrakadabra " consecutively, it is possible that it will be transmitted with the described type of error, resulting in a message like " abrakadabrabrakadabra " or " abrakadabrakadabra ' (in the first case, the merging occurred at one character, and in the second case, at four). Given the received message t , determine if it is possible that this is the result of an error of the described type in the operation of the local network, and if so, determine a possible value of s . A situation where two messages completely overlap each other should not be considered an error. For example, if the received message is " abcd ", it should be considered that there is no error in it. Similarly, simply appending one message after another is not a sign of an error. For instance, if the received message is " abcabc ", it should also be considered that there is no error in it. The input consists of a single non-empty string t , consisting of lowercase letters of the Latin alphabet. The length of the string t does not exceed 4·10 5 characters. If the message t cannot contain an error, output " NO " (without quotes) in a single line of output. Otherwise, in the first line, output " YES " (without quotes), and in the next line, output the string s — a possible message that could have led to the error. If there are multiple possible answers, any of them is accep

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
278568615 A1ternate C2 Aug. 28, 2024, 9:39 p.m. OK C# 10 TESTS 151 109 3174400 1700
278591398 LSD C2 Aug. 29, 2024, 5:36 a.m. OK C++17 (GCC 7-32) TESTS 156 62 102400 1700
278579151 iagozag C2 Aug. 29, 2024, 1:59 a.m. OK C++17 (GCC 7-32) TESTS 156 62 102400 1700
278578982 ma369 C2 Aug. 29, 2024, 1:55 a.m. OK C++17 (GCC 7-32) TESTS 156 62 102400 1700
278575526 Calebam C2 Aug. 29, 2024, 12:32 a.m. OK C++17 (GCC 7-32) TESTS 156 62 102400 1700
278573553 devecent C2 Aug. 28, 2024, 11:34 p.m. OK C++17 (GCC 7-32) TESTS 156 62 102400 1700
278570268 Salah7_a C2 Aug. 28, 2024, 10:11 p.m. OK C++17 (GCC 7-32) TESTS 155 62 512000 1700
278577721 Fusu C2 Aug. 29, 2024, 1:28 a.m. OK C++17 (GCC 7-32) TESTS 156 62 614400 1700
278570999 Yagyesh_Anshul C2 Aug. 28, 2024, 10:29 p.m. OK C++17 (GCC 7-32) TESTS 156 62 614400 1700
278570087 Aasneh C2 Aug. 28, 2024, 10:07 p.m. OK C++17 (GCC 7-32) TESTS 155 62 614400 1700
278569428 techwiz911 C2 Aug. 28, 2024, 9:54 p.m. OK C++17 (GCC 7-32) TESTS 153 62 614400 1700
278584338 GodNiu C2 Aug. 29, 2024, 3:41 a.m. OK C++20 (GCC 13-64) TESTS 156 46 2457600 1700
278576266 9756 C2 Aug. 29, 2024, 12:54 a.m. OK C++20 (GCC 13-64) TESTS 156 46 5734400 1700
278579957 luishgh C2 Aug. 29, 2024, 2:17 a.m. OK C++20 (GCC 13-64) TESTS 156 61 102400 1700
278586813 infty12 C2 Aug. 29, 2024, 4:26 a.m. OK C++20 (GCC 13-64) TESTS 156 61 614400 1700
278582749 Red0 C2 Aug. 29, 2024, 3:12 a.m. OK C++20 (GCC 13-64) TESTS 156 61 1228800 1700
278578971 LeeMinHoon C2 Aug. 29, 2024, 1:55 a.m. OK C++20 (GCC 13-64) TESTS 156 61 2457600 1700
278581915 RainbowDragon C2 Aug. 29, 2024, 2:56 a.m. OK C++20 (GCC 13-64) TESTS 156 61 3276800 1700
278591440 suki._.dayo C2 Aug. 29, 2024, 5:37 a.m. OK C++20 (GCC 13-64) TESTS 156 62 102400 1700
278591313 Pedestrian... C2 Aug. 29, 2024, 5:35 a.m. OK C++20 (GCC 13-64) TESTS 156 62 102400 1700
278586095 Chill_xy C2 Aug. 29, 2024, 4:13 a.m. OK C++20 (GCC 13-64) TESTS 156 62 102400 1700
278569842 nikolashami C2 Aug. 28, 2024, 10:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 155 61 7680000 1700
278591856 Dash_____ C2 Aug. 29, 2024, 5:42 a.m. OK C++23 (GCC 14-64, msys2) TESTS 156 62 11980800 1700
278575994 Z_drj C2 Aug. 29, 2024, 12:46 a.m. OK C++23 (GCC 14-64, msys2) TESTS 156 62 15155200 1700
278582155 _Taitan C2 Aug. 29, 2024, 3:01 a.m. OK C++23 (GCC 14-64, msys2) TESTS 156 62 21504000 1700
278569353 BluoCaroot C2 Aug. 28, 2024, 9:53 p.m. OK C++23 (GCC 14-64, msys2) TESTS 153 77 7680000 1700
278564657 JhoZzel_ C2 Aug. 28, 2024, 9:13 p.m. OK C++23 (GCC 14-64, msys2) TESTS 151 77 7680000 1700
278563586 Highty C2 Aug. 28, 2024, 9:03 p.m. OK C++23 (GCC 14-64, msys2) TESTS 151 77 7680000 1700
278561754 Adham_Ibrahim C2 Aug. 28, 2024, 8:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 151 77 7680000 1700
278569683 saadkhurshidqureshi C2 Aug. 28, 2024, 9:59 p.m. OK C++23 (GCC 14-64, msys2) TESTS 155 77 10342400 1700
278561078 arseny2606 C2 Aug. 28, 2024, 8:43 p.m. OK C++23 (GCC 14-64, msys2) TESTS 151 77 10342400 1700
278591405 cpp10 C2 Aug. 29, 2024, 5:36 a.m. OK Java 21 TESTS 156 265 1638400 1700
278591522 cpp10 C2 Aug. 29, 2024, 5:38 a.m. OK Java 21 TESTS 156 312 1433600 1700
278590706 iamalizaidi C2 Aug. 29, 2024, 5:27 a.m. OK Java 21 TESTS 156 342 1126400 1700
278562035 Eslam_Ahmed C2 Aug. 28, 2024, 8:49 p.m. OK Java 8 TESTS 151 249 10137600 1700
278570619 Yousef_Badr C2 Aug. 28, 2024, 10:19 p.m. OK Java 8 TESTS 155 405 77619200 1700
278569173 bnmanubharadwaj C2 Aug. 28, 2024, 9:49 p.m. OK JavaScript TESTS 152 108 7884800 1700
278561731 MDSPro C2 Aug. 28, 2024, 8:47 p.m. OK PyPy 3 TESTS 151 155 7987200 1700
278565111 HuTao_Oya_OyaOya C2 Aug. 28, 2024, 9:17 p.m. OK PyPy 3 TESTS 151 156 5632000 1700
278579917 ranamubashirhassan C2 Aug. 29, 2024, 2:16 a.m. OK PyPy 3-64 TESTS 156 108 6860800 1700
278587752 RinkaSnow C2 Aug. 29, 2024, 4:42 a.m. OK PyPy 3-64 TESTS 156 108 7782400 1700
278560891 eugenechka.boyko.2_0-0 C2 Aug. 28, 2024, 8:41 p.m. OK PyPy 3-64 TESTS 151 109 6860800 1700
278564562 hitthheerree C2 Aug. 28, 2024, 9:12 p.m. OK PyPy 3-64 TESTS 151 124 7372800 1700
278570064 verstrapp_1 C2 Aug. 28, 2024, 10:07 p.m. OK PyPy 3-64 TESTS 155 140 16896000 1700
278560794 anango C2 Aug. 28, 2024, 8:40 p.m. OK PyPy 3-64 TESTS 151 156 11059200 1700
278588113 LightHouse1 C2 Aug. 29, 2024, 4:48 a.m. OK PyPy 3-64 TESTS 156 202 32051200 1700
278563161 shash4321 C2 Aug. 28, 2024, 8:59 p.m. OK PyPy 3-64 TESTS 151 202 143052800 1700
278564084 hxu10 C2 Aug. 28, 2024, 9:07 p.m. OK PyPy 3-64 TESTS 151 358 30822400 1700
278585940 phantrongnghia510 C2 Aug. 29, 2024, 4:10 a.m. OK Python 3 TESTS 156 156 17305600 1700
278565408 Deadlift_guy_0010 C2 Aug. 28, 2024, 9:19 p.m. OK Python 3 TESTS 151 359 16486400 1700

remove filters

Back to search problems