Codeforces Round 579 (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
1203 Codeforces Round 579 (Div. 3) FINISHED False 8400 166116299 Aug. 13, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7460 ) D2 Remove the Substring (hard version) PROGRAMMING binary search greedy implementation two pointers 1800

B'The only difference between easy and hard versions is the length of the string. You are given a string s and a string t , both consisting only of lowercase Latin letters. It is guaranteed that t can be obtained from s by removing some (possibly, zero) number of characters (not necessary contiguous) from s without changing order of remaining characters (in other words, it is guaranteed that t is a subsequence of s ). For example, the strings "test", "tst", "tt", "et" and "" are subsequences of the string "test". But the strings "tset", "se", "contest" are not subsequences of the string "test". You want to remove some substring (contiguous subsequence) from s of maximum possible length such that after removing this substring t will remain a subsequence of s . If you want to remove the substring s[l;r] then the string s will be transformed to s_1 s_2 ... s_{l-1} s_{r+1} s_{r+2} ... s_{|s|-1} s_{|s|} (where |s| is the length of s ). Your task is to find the maximum possible length of the substring you can remove so that t is still a subsequence of s . The first line of the input contains one string s consisting of at least 1 and at most 2 cdot 10^5 lowercase Latin letters. The second line of the input contains one string t consisting of at least 1 and at most 2 cdot 10^5 lowercase Latin letters. It is guaranteed that t is a subsequence of s . Print one integer -- the maximum possible length of the substring you can remove so that t is still a subsequence of s . '...

Tutorials

Codeforces Round #579 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61227730 EZ_lzh D2 Sept. 24, 2019, 3:42 p.m. OK FPC TESTS 59 31 2969600 1800
59553346 shenlihong D2 Aug. 27, 2019, 4:42 a.m. OK GNU C11 TESTS 59 31 2969600 1800
58984141 oyashiroshama D2 Aug. 18, 2019, 6:09 a.m. OK GNU C++11 TESTS 59 31 1024000 1800
63910826 czraaaaaaa D2 Oct. 31, 2019, 8:12 a.m. OK GNU C++11 TESTS 59 31 1228800 1800
63698658 OrangeCrayon D2 Oct. 29, 2019, 6:30 a.m. OK GNU C++11 TESTS 59 31 1228800 1800
59561481 Krypton12138 D2 Aug. 27, 2019, 8:46 a.m. OK GNU C++11 TESTS 59 31 1228800 1800
59244302 ved2017 D2 Aug. 21, 2019, 9:56 p.m. OK GNU C++11 TESTS 59 31 1228800 1800
58979209 UPClxq D2 Aug. 18, 2019, 3:10 a.m. OK GNU C++11 TESTS 59 31 1228800 1800
58978180 Abosite D2 Aug. 18, 2019, 2:27 a.m. OK GNU C++11 TESTS 59 31 1228800 1800
68365421 _dark_side D2 Jan. 7, 2020, 3:46 p.m. OK GNU C++11 TESTS 59 31 1228800 1800
63937646 WinstonWolf D2 Oct. 31, 2019, 4:23 p.m. OK GNU C++11 TESTS 59 31 1228800 1800
63910962 czraaaaaaa D2 Oct. 31, 2019, 8:15 a.m. OK GNU C++11 TESTS 59 31 1228800 1800
59503950 Gilfoyl D2 Aug. 26, 2019, 4:56 a.m. OK GNU C++14 TESTS 59 30 1331200 1800
59409178 MasumBhuiyan D2 Aug. 24, 2019, 3:06 p.m. OK GNU C++14 TESTS 59 30 1536000 1800
59418798 Tusher_CSE D2 Aug. 24, 2019, 7:41 p.m. OK GNU C++14 TESTS 59 30 1843200 1800
64049878 Xarr D2 Nov. 1, 2019, 9:02 p.m. OK GNU C++14 TESTS 59 30 1843200 1800
61372434 derrickball D2 Sept. 27, 2019, 3:24 p.m. OK GNU C++14 TESTS 59 30 2048000 1800
58956473 Moamen. D2 Aug. 17, 2019, 1:14 p.m. OK GNU C++14 TESTS 59 30 2355200 1800
59070897 Hexcalibearuy D2 Aug. 19, 2019, 4:41 a.m. OK GNU C++14 TESTS 59 30 2355200 1800
63924827 ORZWSL D2 Oct. 31, 2019, 12:45 p.m. OK GNU C++14 TESTS 59 30 3993600 1800
67269658 tangbinjie D2 Dec. 20, 2019, 7:38 a.m. OK GNU C++14 TESTS 59 31 1228800 1800
61240887 TediDinuta D2 Sept. 24, 2019, 7:53 p.m. OK GNU C++14 TESTS 59 31 1228800 1800
58875830 Qlukva D2 Aug. 15, 2019, 5:47 p.m. OK GNU C++17 TESTS 59 15 1331200 1800
66528694 misir D2 Dec. 9, 2019, 6:34 a.m. OK GNU C++17 TESTS 59 15 1331200 1800
68454980 ViFuji D2 Jan. 9, 2020, 3:49 p.m. OK GNU C++17 TESTS 59 15 2355200 1800
59690604 abhishekad7 D2 Aug. 30, 2019, 5:48 a.m. OK GNU C++17 TESTS 59 30 1740800 1800
58940291 Grexs D2 Aug. 17, 2019, 6:36 a.m. OK GNU C++17 TESTS 59 30 1843200 1800
68049017 aneeshupriser D2 Jan. 1, 2020, 5:51 p.m. OK GNU C++17 TESTS 59 30 1843200 1800
59391548 SixPathOfPain D2 Aug. 24, 2019, 8:44 a.m. OK GNU C++17 TESTS 59 30 1843200 1800
60375552 vjudge3 D2 Sept. 11, 2019, 6:20 a.m. OK GNU C++17 TESTS 59 30 2048000 1800
59689951 Top_xiao D2 Aug. 30, 2019, 5:22 a.m. OK GNU C++17 TESTS 59 30 2048000 1800
61796366 alhiris D2 Oct. 3, 2019, 5:23 p.m. OK GNU C++17 TESTS 59 30 2048000 1800
59891066 M4X1M D2 Sept. 2, 2019, 10:24 a.m. OK Go TESTS 59 46 0 1800
59644149 yang12138 D2 Aug. 29, 2019, 4:30 a.m. OK Go TESTS 59 46 0 1800
59856770 mangojunior D2 Sept. 1, 2019, 1:50 p.m. OK Haskell TESTS 59 77 14745600 1800
62231490 Hawkwall D2 Oct. 9, 2019, 8:48 p.m. OK Haskell TESTS 59 93 14745600 1800
63518311 Clowyy D2 Oct. 27, 2019, 2:15 a.m. OK Java 11 TESTS 59 264 0 1800
62964386 dyhu083 D2 Oct. 20, 2019, 3:31 a.m. OK Java 8 TESTS 59 109 0 1800
59314925 unicorn20141 D2 Aug. 22, 2019, 4:44 p.m. OK Java 8 TESTS 59 109 0 1800
59222497 Khater D2 Aug. 21, 2019, 12:42 p.m. OK Java 8 TESTS 59 109 0 1800
59055885 Dejokz D2 Aug. 18, 2019, 6:54 p.m. OK Java 8 TESTS 59 109 0 1800
58879840 lifeiteng D2 Aug. 15, 2019, 8:08 p.m. OK Java 8 TESTS 59 109 0 1800
66595812 kalyanirishabh1198 D2 Dec. 10, 2019, 2:38 p.m. OK Java 8 TESTS 59 124 0 1800
66141869 kocko D2 Dec. 1, 2019, 2:47 p.m. OK Java 8 TESTS 59 124 0 1800
65691850 barakraganosungam atfiona DanielW48 D2 Nov. 25, 2019, 5:29 a.m. OK Java 8 TESTS 59 124 0 1800
62641485 garg_vibhor D2 Oct. 15, 2019, 6:17 p.m. OK Java 8 TESTS 59 124 0 1800
60662573 dtsarun D2 Sept. 16, 2019, 5:59 a.m. OK Java 8 TESTS 59 124 0 1800
61567526 walborn D2 Sept. 30, 2019, 5:33 p.m. OK JavaScript TESTS 59 46 3993600 1800
60175018 liouzhou_101 D2 Sept. 6, 2019, 2:06 p.m. OK Kotlin TESTS 59 155 3891200 1800
59327013 Anastasiya_Andreevna D2 Aug. 22, 2019, 9:20 p.m. OK Mono C# TESTS 59 62 2252800 1800
62181888 NEvOl D2 Oct. 9, 2019, 6:46 a.m. OK Mono C# TESTS 59 62 2252800 1800
59945336 tomasz.masternak D2 Sept. 3, 2019, 12:49 p.m. OK Mono C# TESTS 59 62 2355200 1800
59103027 og.kostya D2 Aug. 19, 2019, 4:51 p.m. OK Mono C# TESTS 59 62 2355200 1800
59172486 DCShannon D2 Aug. 20, 2019, 3:55 p.m. OK Mono C# TESTS 59 77 7577600 1800
59237224 Giangvp D2 Aug. 21, 2019, 5:57 p.m. OK Mono C# TESTS 59 77 9011200 1800
58891665 Aman941 D2 Aug. 16, 2019, 5:54 a.m. OK MS C++ TESTS 59 31 1228800 1800
58891632 Aman941 D2 Aug. 16, 2019, 5:53 a.m. OK MS C++ TESTS 59 31 1228800 1800
58963038 abhishek_1 D2 Aug. 17, 2019, 4:15 p.m. OK MS C++ TESTS 59 31 1740800 1800
62678202 vjudge1 D2 Oct. 16, 2019, 12:03 p.m. OK MS C++ TESTS 59 31 2048000 1800
58933396 vjudge1 D2 Aug. 17, 2019, 2:26 a.m. OK MS C++ TESTS 59 31 2048000 1800
59400815 sunnyorrainy D2 Aug. 24, 2019, 12:03 p.m. OK MS C++ TESTS 59 31 2048000 1800
60303270 vjudge4 D2 Sept. 9, 2019, 12:56 p.m. OK MS C++ TESTS 59 31 2048000 1800
59446684 APTX_4869_ D2 Aug. 25, 2019, 1:38 p.m. OK MS C++ TESTS 59 31 3584000 1800
60934492 MrBear D2 Sept. 20, 2019, 2:49 p.m. OK MS C++ TESTS 59 46 3174400 1800
58870236 EvGen1u5 D2 Aug. 15, 2019, 3:04 p.m. OK MS C++ 2017 TESTS 59 31 614400 1800
58962042 Ivan_Dunko D2 Aug. 17, 2019, 3:45 p.m. OK MS C++ 2017 TESTS 59 31 1126400 1800
59198868 2018qwer D2 Aug. 21, 2019, 3:21 a.m. OK MS C++ 2017 TESTS 59 31 1433600 1800
59838182 durano D2 Sept. 1, 2019, 5:46 a.m. OK MS C++ 2017 TESTS 59 31 1433600 1800
58901616 NewLul D2 Aug. 16, 2019, 9:23 a.m. OK MS C++ 2017 TESTS 59 31 1638400 1800
59839613 durano D2 Sept. 1, 2019, 6:32 a.m. OK MS C++ 2017 TESTS 59 31 2252800 1800
65432288 StreetMeat25 ArinaRaguzina RunoLight D2 Nov. 20, 2019, 12:24 p.m. OK MS C++ 2017 TESTS 59 31 2252800 1800
58943504 succ1815406055 D2 Aug. 17, 2019, 7:57 a.m. OK MS C++ 2017 TESTS 59 31 2252800 1800
59592675 Nikpro2001258135 D2 Aug. 27, 2019, 9:50 p.m. OK MS C++ 2017 TESTS 59 31 2764800 1800
65339346 vjudge1 D2 Nov. 19, 2019, 10:20 a.m. OK MS C++ 2017 TESTS 59 31 10342400 1800
58870976 mayakin D2 Aug. 15, 2019, 3:25 p.m. OK PHP TESTS 59 78 26828800 1800
59675287 MVP D2 Aug. 29, 2019, 5:51 p.m. OK PyPy 2 TESTS 59 140 3891200 1800
58990412 pyduper D2 Aug. 18, 2019, 8:59 a.m. OK PyPy 3 TESTS 59 171 3993600 1800
58990834 pyduper D2 Aug. 18, 2019, 9:09 a.m. OK PyPy 3 TESTS 59 171 3993600 1800
59606744 RedRanger D2 Aug. 28, 2019, 9:11 a.m. OK PyPy 3 TESTS 59 171 4812800 1800
59231678 himankpathak D2 Aug. 21, 2019, 3:43 p.m. OK PyPy 3 TESTS 59 171 6451200 1800
59586409 erickjohnross D2 Aug. 27, 2019, 6:11 p.m. OK PyPy 3 TESTS 59 171 7168000 1800
59242484 sanvi_kiit D2 Aug. 21, 2019, 8:31 p.m. OK PyPy 3 TESTS 59 171 7475200 1800
59209669 Evgenii_Stepanov D2 Aug. 21, 2019, 8:07 a.m. OK PyPy 3 TESTS 59 171 7475200 1800
58956413 teexone D2 Aug. 17, 2019, 1:13 p.m. OK PyPy 3 TESTS 59 171 7884800 1800
62858921 Code_Bear D2 Oct. 18, 2019, 10:12 a.m. OK PyPy 3 TESTS 59 186 5017600 1800
58866404 b_hunter D2 Aug. 15, 2019, 1:32 p.m. OK PyPy 3 TESTS 59 186 8089600 1800
59515153 elehtine D2 Aug. 26, 2019, 9:20 a.m. OK Python 3 TESTS 59 249 7782400 1800
58878134 tornado7 D2 Aug. 15, 2019, 7:05 p.m. OK Python 3 TESTS 59 280 7782400 1800
68321488 vaisnav D2 Jan. 6, 2020, 3:08 p.m. OK Python 3 TESTS 59 295 9011200 1800
59065446 ScriptLee D2 Aug. 19, 2019, 1:34 a.m. OK Python 3 TESTS 59 311 4198400 1800
58927496 TolimanStaR D2 Aug. 16, 2019, 8:31 p.m. OK Python 3 TESTS 59 312 7782400 1800
59605351 bego1 D2 Aug. 28, 2019, 8:30 a.m. OK Python 3 TESTS 59 327 7168000 1800
62743556 karthikeya619 alphatron99 Kishen19 D2 Oct. 16, 2019, 8:37 p.m. OK Python 3 TESTS 59 327 7270400 1800
58996939 SinKing D2 Aug. 18, 2019, 11:49 a.m. OK Python 3 TESTS 59 342 6348800 1800
59260080 YW.Z D2 Aug. 22, 2019, 8:14 a.m. OK Python 3 TESTS 59 342 7168000 1800
59116381 PlusUltra D2 Aug. 20, 2019, 1:57 a.m. OK Python 3 TESTS 59 343 7168000 1800
58866872 Lancern D2 Aug. 15, 2019, 1:43 p.m. OK Rust TESTS 59 31 2560000 1800
59475912 ValenKof D2 Aug. 25, 2019, 3:59 p.m. OK Rust TESTS 59 46 2457600 1800

remove filters

Back to search problems