Codeforces Round 726 (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
1537 Codeforces Round 726 (Div. 2) FINISHED False 7200 113153063 June 18, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5321 ) E2 Erase and Extend (Hard Version) PROGRAMMING binary search data structures greedy hashing string suffix structures strings

B'This is the hard version of the problem. The only difference is the constraints on n and k . You can make hacks only if all versions of the problem are solved. You have a string s , and you can do two types of operations on it: You can use each operation any number of times (possibly none). Your task is to find the lexicographically smallest string of length exactly k that can be obtained by doing these operations on string s . A string a is lexicographically smaller than a string b if and only if one of the following holds: The first line contains two integers n , k ( 1 <= q n, k <= q 5 cdot 10^5 ) -- the length of the original string s and the length of the desired string. The second line contains the string s , consisting of n lowercase English letters. Print the lexicographically smallest string of length k that can be obtained by doing the operations on string s . In the first test, it is optimal to make one duplication: "dbcadabc" to "dbcadabcdbcadabc". In the second test it is optimal to delete the last 3 characters, then duplicate the string 3 times, then delete the last 3 characters to make the string have length k . "abcd" to "abc" to "ab" to "a" to "aa" to "aaaa" to "aaaaaaaa" to "aaaaaaa" to "aaaaaa" to "aaaaa". '...

Tutorials

Codeforces Round #726 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
119936233 Epiphanyi E2 June 19, 2021, 1:44 a.m. OK GNU C++11 TESTS 97 31 307200
119941206 iuiou E2 June 19, 2021, 3:20 a.m. OK GNU C++11 TESTS 97 31 1024000
119938654 FunnyCrafter E2 June 19, 2021, 2:37 a.m. OK GNU C++11 TESTS 97 31 1024000
119936563 cainiaoqiujiao E2 June 19, 2021, 1:53 a.m. OK GNU C++11 TESTS 97 31 2048000
119954469 WA_auto_machine E2 June 19, 2021, 6:02 a.m. OK GNU C++11 TESTS 97 31 2355200
119944955 DEAD_POOL2001 E2 June 19, 2021, 4:18 a.m. OK GNU C++11 TESTS 97 31 2560000
119952361 Fan_of_IceLocke E2 June 19, 2021, 5:42 a.m. OK GNU C++11 TESTS 97 31 2560000
119940079 hnust_limingliang E2 June 19, 2021, 3:02 a.m. OK GNU C++11 TESTS 97 31 2764800
119939404 aaru2601 E2 June 19, 2021, 2:50 a.m. OK GNU C++11 TESTS 97 31 3481600
119938192 WAZXYY E2 June 19, 2021, 2:28 a.m. OK GNU C++11 TESTS 97 31 4096000
119925866 suyash_jain_ E2 June 18, 2021, 8:05 p.m. OK GNU C++14 TESTS 95 31 1536000
119944260 ayushagrwl E2 June 19, 2021, 4:08 a.m. OK GNU C++14 TESTS 97 31 1843200
119925820 chaitanyahardikar E2 June 18, 2021, 8:04 p.m. OK GNU C++14 TESTS 95 31 2048000
119950244 akashiSan E2 June 19, 2021, 5:19 a.m. OK GNU C++14 TESTS 97 31 2048000
119947331 araragi_koyo E2 June 19, 2021, 4:48 a.m. OK GNU C++14 TESTS 97 31 2048000
119922491 avg_cf_user E2 June 18, 2021, 7:18 p.m. OK GNU C++14 TESTS 95 31 2048000
119929652 The.Dreamer E2 June 18, 2021, 9:23 p.m. OK GNU C++14 TESTS 95 31 2560000
119954146 TheStriker E2 June 19, 2021, 5:58 a.m. OK GNU C++14 TESTS 97 31 2560000
119944063 rakesht E2 June 19, 2021, 4:04 a.m. OK GNU C++14 TESTS 97 31 2560000
119931648 _xi_ E2 June 18, 2021, 10:30 p.m. OK GNU C++14 TESTS 95 31 2560000
119925629 iitian1160 E2 June 18, 2021, 8:01 p.m. OK GNU C++17 TESTS 95 31 1536000
119941347 dheerajtiwari E2 June 19, 2021, 3:22 a.m. OK GNU C++17 TESTS 97 31 1843200
119939564 kitsa E2 June 19, 2021, 2:53 a.m. OK GNU C++17 TESTS 97 31 2048000
119930692 sanidhya2101 E2 June 18, 2021, 9:55 p.m. OK GNU C++17 TESTS 95 31 2048000
119922471 Kumar_Suman_Saurabh E2 June 18, 2021, 7:18 p.m. OK GNU C++17 TESTS 95 31 2048000
119921217 lovekv4321 E2 June 18, 2021, 7:06 p.m. OK GNU C++17 TESTS 95 31 2048000
119919161 Mr_Raghav E2 June 18, 2021, 6:48 p.m. OK GNU C++17 TESTS 95 31 2048000
119918735 tanwir1703 E2 June 18, 2021, 6:43 p.m. OK GNU C++17 TESTS 95 31 2048000
119954160 mangat_angad E2 June 19, 2021, 5:59 a.m. OK GNU C++17 TESTS 97 31 2048000
119949709 Coding_boy E2 June 19, 2021, 5:14 a.m. OK GNU C++17 TESTS 97 31 2457600
119941289 burnoutag E2 June 19, 2021, 3:21 a.m. OK GNU C++17 (64) TESTS 97 31 512000
119938641 SW2000 E2 June 19, 2021, 2:37 a.m. OK GNU C++17 (64) TESTS 97 31 512000
119943643 timeguy E2 June 19, 2021, 3:59 a.m. OK GNU C++17 (64) TESTS 97 31 1024000
119950385 youtsuha E2 June 19, 2021, 5:21 a.m. OK GNU C++17 (64) TESTS 97 31 1024000
119918131 ScarletS E2 June 18, 2021, 6:37 p.m. OK GNU C++17 (64) TESTS 95 31 1024000
119927087 RP_21 E2 June 18, 2021, 8:26 p.m. OK GNU C++17 (64) TESTS 95 31 1536000
119950251 golden.duck E2 June 19, 2021, 5:19 a.m. OK GNU C++17 (64) TESTS 97 31 1536000
119925295 codOR_221B E2 June 18, 2021, 7:56 p.m. OK GNU C++17 (64) TESTS 95 31 1638400
119946336 priyanshu_x E2 June 19, 2021, 4:35 a.m. OK GNU C++17 (64) TESTS 97 31 2457600
119952783 Ray_Striker E2 June 19, 2021, 5:46 a.m. OK GNU C++17 (64) TESTS 97 31 2457600
119945736 0x3F E2 June 19, 2021, 4:28 a.m. OK Go TESTS 97 670 181862400
119946059 0x3F E2 June 19, 2021, 4:32 a.m. OK Go TESTS 97 670 181964800
119947073 akshatj07 E2 June 19, 2021, 4:45 a.m. OK Java 11 TESTS 97 187 0
119930712 agarcellr E2 June 18, 2021, 9:56 p.m. OK Java 11 TESTS 95 187 0
119938817 bluesky111 E2 June 19, 2021, 2:40 a.m. OK Java 11 TESTS 97 202 0
119933260 G.A.T.C E2 June 19, 2021, 12:01 a.m. OK Java 11 TESTS 96 202 0
119919901 Lucifer__89 E2 June 18, 2021, 6:56 p.m. OK Java 11 TESTS 95 217 0
119942446 Arjun-Ichiban E2 June 19, 2021, 3:39 a.m. OK Java 11 TESTS 97 218 0
119920000 Lucifer__89 E2 June 18, 2021, 6:57 p.m. OK Java 11 TESTS 95 233 0
119916926 vixel E2 June 18, 2021, 6:29 p.m. OK Java 11 TESTS 95 233 0
119932679 G.A.T.C E2 June 18, 2021, 11:26 p.m. OK Java 11 TESTS 96 249 0
119919576 cribabby E2 June 18, 2021, 6:53 p.m. OK Java 11 TESTS 95 265 102400
119939420 ashuman231 E2 June 19, 2021, 2:50 a.m. OK Java 8 TESTS 97 124 0
119938379 aggarwalanshul01 E2 June 19, 2021, 2:32 a.m. OK Java 8 TESTS 97 124 716800
119937746 S8UL_1963 E2 June 19, 2021, 2:19 a.m. OK Java 8 TESTS 97 139 0
119927627 Sandip_Jana E2 June 18, 2021, 8:36 p.m. OK Java 8 TESTS 95 139 0
119920111 nuni. E2 June 18, 2021, 6:57 p.m. OK Java 8 TESTS 95 140 0
119951407 honeysingh18 E2 June 19, 2021, 5:32 a.m. OK Java 8 TESTS 97 140 0
119949259 InANutshell E2 June 19, 2021, 5:09 a.m. OK Java 8 TESTS 97 140 0
119926856 pramit1998 E2 June 18, 2021, 8:22 p.m. OK Java 8 TESTS 95 140 0
119921189 nuni. E2 June 18, 2021, 7:06 p.m. OK Java 8 TESTS 95 140 0
119922029 love1024 E2 June 18, 2021, 7:14 p.m. OK Java 8 TESTS 95 155 0
119919793 Hakiobo E2 June 18, 2021, 6:55 p.m. OK Kotlin TESTS 95 171 409600
119917781 knightL E2 June 18, 2021, 6:35 p.m. OK Kotlin TESTS 95 390 134451200
119921219 LeoPro E2 June 18, 2021, 7:06 p.m. OK Kotlin TESTS 95 685 14745600
119927180 moreda E2 June 18, 2021, 8:28 p.m. OK MS C++ 2017 TESTS 95 31 2252800
119921051 xsc E2 June 18, 2021, 7:05 p.m. OK MS C++ 2017 TESTS 95 93 1024000
119938468 Cube219 E2 June 19, 2021, 2:33 a.m. OK MS C++ 2017 TESTS 97 1138 38400000
119931249 lionvs132 E2 June 18, 2021, 10:14 p.m. OK .NET Core C# TESTS 95 93 7884800
119920628 legend.ary_as E2 June 18, 2021, 7:01 p.m. OK PyPy 3 TESTS 95 124 5734400
119947945 innocent_SINNER E2 June 19, 2021, 4:55 a.m. OK PyPy 3 TESTS 97 155 5939200
119921845 HimanShu09 E2 June 18, 2021, 7:12 p.m. OK PyPy 3 TESTS 95 155 6246400
119944704 Joel_Sathi E2 June 19, 2021, 4:14 a.m. OK PyPy 3 TESTS 97 155 6758400
119919878 legend.ary_as E2 June 18, 2021, 6:56 p.m. OK PyPy 3 TESTS 95 155 7475200
119936070 puzzleVerma E2 June 19, 2021, 1:40 a.m. OK PyPy 3 TESTS 96 156 6144000
119929939 abhishek4981 E2 June 18, 2021, 9:31 p.m. OK PyPy 3 TESTS 95 170 71577600
119918395 Lyamzin_alexandr E2 June 18, 2021, 6:39 p.m. OK PyPy 3 TESTS 95 171 6348800
119929328 legend.ary_as E2 June 18, 2021, 9:15 p.m. OK PyPy 3 TESTS 95 171 6656000
119917337 akshaykhandelwal E2 June 18, 2021, 6:32 p.m. OK PyPy 3 TESTS 95 171 6860800
119933055 Hitik E2 June 18, 2021, 11:49 p.m. OK Python 2 TESTS 96 421 10444800
119953539 sh1194 E2 June 19, 2021, 5:52 a.m. OK Python 3 TESTS 97 373 2457600
119944722 hellohowareyou E2 June 19, 2021, 4:14 a.m. OK Python 3 TESTS 97 405 2662400
119920766 rubydubee E2 June 18, 2021, 7:03 p.m. OK Python 3 TESTS 95 467 5734400
119932175 GraphTheory E2 June 18, 2021, 10:58 p.m. OK Rust TESTS 96 1934 19763200

remove filters

Back to search problems