Codeforces Round 452 (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
899 Codeforces Round 452 (Div. 2) FINISHED False 7200 223687463 Dec. 17, 2017, 6:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1870 ) F Letters Removing PROGRAMMING data structures strings 2200

B'Petya has a string of length n consisting of small and large English letters and digits. He performs m operations. Each operation is described with two integers l and r and a character c: Petya removes from the string all characters c on positions between l and r, inclusive. It 's obvious that the length of the string remains the same or decreases after each operation. Find how the string will look like after Petya performs all m operations. The first string contains two integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- the length of the string and the number of operations. The second line contains the string of length n, consisting of small and large English letters and digits. Positions in the string are enumerated from 1. Each of the next m lines contains two integers l and r (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r), followed by a character c, which is a small or large English letter or a digit. This line describes one operation. It is guaranteed that r doesn 't exceed the length of the string s before current operation. Print the string Petya will obtain after performing all m operations. If the strings becomes empty after all operations, print an empty line. In the first example during the first operation both letters 'a ' are removed, so the string becomes "bc". During the second operation the letter 'c ' (on the second position) is removed, and the string becomes "b". In the second example during the first operation Petya removes '0 ' from the second position. After that the string becomes "Az". During the second operations the string doesn 't change. '...

Tutorials

Codeforces Round #452 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
33383562 ImForbiddenToSayILoveYou F Dec. 18, 2017, 3:06 p.m. OK FPC TESTS 48 483 53452800 2200
33538253 Joky_02 F Dec. 23, 2017, 12:53 p.m. OK GNU C++ TESTS 48 46 9523200 2200
40978926 ReaLNero1 F July 30, 2018, 4:52 p.m. OK GNU C++ TESTS 48 62 7475200 2200
33403048 Edgration. F Dec. 19, 2017, 9:30 a.m. OK GNU C++ TESTS 48 93 28262400 2200
33384584 vjudge4 F Dec. 18, 2017, 3:48 p.m. OK GNU C++ TESTS 48 124 4403200 2200
33345173 TimeLimitExceed F Dec. 17, 2017, 8:08 a.m. OK GNU C++ TESTS 48 124 10137600 2200
34252479 vjudge3 F Jan. 17, 2018, 1:10 p.m. OK GNU C++ TESTS 48 124 10956800 2200
34252462 zhenGG F Jan. 17, 2018, 1:10 p.m. OK GNU C++ TESTS 48 124 10956800 2200
33352445 beginend F Dec. 17, 2017, 11:55 a.m. OK GNU C++ TESTS 48 124 12902400 2200
33405975 return_zero F Dec. 19, 2017, 11:23 a.m. OK GNU C++ TESTS 48 139 5939200 2200
33408365 return_zero F Dec. 19, 2017, 12:51 p.m. OK GNU C++ TESTS 48 139 10444800 2200
39084550 xsc F June 10, 2018, 6:11 a.m. OK GNU C++11 TESTS 48 46 7475200 2200
34341840 vjudge2 F Jan. 20, 2018, 6:57 a.m. OK GNU C++11 TESTS 48 46 9728000 2200
35733549 vjudge4 F Feb. 26, 2018, 1:36 p.m. OK GNU C++11 TESTS 48 62 10752000 2200
37623842 RNS_MHB F April 26, 2018, 3:42 a.m. OK GNU C++11 TESTS 48 62 12083200 2200
40575120 vjudge2 F July 20, 2018, 10:49 a.m. OK GNU C++11 TESTS 48 77 8601600 2200
33337783 kczno1 F Dec. 17, 2017, 7:09 a.m. OK GNU C++11 TESTS 48 78 11673600 2200
33394940 FoolMike F Dec. 19, 2017, 1:27 a.m. OK GNU C++11 TESTS 48 93 8704000 2200
33368801 T404 F Dec. 18, 2017, 5:15 a.m. OK GNU C++11 TESTS 48 93 9523200 2200
33368739 T404 F Dec. 18, 2017, 5:11 a.m. OK GNU C++11 TESTS 48 93 9523200 2200
49061994 sunny_fei F Jan. 27, 2019, 3:52 p.m. OK GNU C++11 TESTS 48 93 10035200 2200
33385522 helio F Dec. 18, 2017, 4:22 p.m. OK GNU C++14 TESTS 48 109 9523200 2200
33376912 cghAndy F Dec. 18, 2017, 11:30 a.m. OK GNU C++14 TESTS 48 109 13619200 2200
33672159 MiohitoKiri5474 F Dec. 27, 2017, 3:16 p.m. OK GNU C++14 TESTS 48 124 2764800 2200
33487307 aleksami F Dec. 21, 2017, 5:40 p.m. OK GNU C++14 TESTS 48 124 5427200 2200
33385547 i_love_demiguo F Dec. 18, 2017, 4:23 p.m. OK GNU C++14 TESTS 48 124 9523200 2200
33455468 Linkus F Dec. 20, 2017, 12:49 p.m. OK GNU C++14 TESTS 48 124 11980800 2200
33402281 haleyk100198 F Dec. 19, 2017, 8:57 a.m. OK GNU C++14 TESTS 48 124 15360000 2200
33487320 aleksami F Dec. 21, 2017, 5:40 p.m. OK GNU C++14 TESTS 48 139 5427200 2200
33378712 MiohitoKiri5474 F Dec. 18, 2017, 12:27 p.m. OK GNU C++14 TESTS 48 140 2764800 2200
38953002 tenshi_kanade F June 4, 2018, 6:36 p.m. OK GNU C++14 TESTS 48 140 11776000 2200
67179934 toi333 F Dec. 18, 2019, 9:53 p.m. OK GNU C++17 TESTS 48 124 14233600 2200
64557156 3027708778 F Nov. 9, 2019, 4:25 a.m. OK GNU C++17 TESTS 48 139 3993600 2200
64748445 Nightmar F Nov. 12, 2019, 2:22 p.m. OK GNU C++17 TESTS 48 155 14336000 2200
68567753 Infused F Jan. 10, 2020, 10:56 p.m. OK GNU C++17 TESTS 48 156 11059200 2200
55390351 KiKoS F June 10, 2019, 9:24 a.m. OK GNU C++17 TESTS 48 171 8089600 2200
47603915 G.HK F Dec. 28, 2018, 2:53 a.m. OK GNU C++17 TESTS 48 171 9523200 2200
54374993 rares2004 F May 19, 2019, 8:23 a.m. OK GNU C++17 TESTS 48 171 10035200 2200
50544099 Martin53 F Feb. 26, 2019, 8:01 p.m. OK GNU C++17 TESTS 48 171 10035200 2200
48308347 markotee F Jan. 12, 2019, 9:47 p.m. OK GNU C++17 TESTS 48 171 11571200 2200
59900362 Mahir83 F Sept. 2, 2019, 1:28 p.m. OK GNU C++17 TESTS 48 171 11980800 2200
33405100 Ruins F Dec. 19, 2017, 10:52 a.m. OK Java 8 TESTS 48 249 23859200 2200
33360014 aminul F Dec. 17, 2017, 6:23 p.m. OK Java 8 TESTS 48 249 27136000 2200
52611917 wadissimo F April 11, 2019, 4:28 p.m. OK Java 8 TESTS 48 311 5427200 2200
34045776 Maulik_Patel F Jan. 9, 2018, 10:17 a.m. OK Java 8 TESTS 48 327 38809600 2200
33402234 sanketmakani F Dec. 19, 2017, 8:55 a.m. OK Java 8 TESTS 48 327 39014400 2200
34182434 kanak893 F Jan. 14, 2018, 6:19 p.m. OK Java 8 TESTS 48 342 38809600 2200
33379427 U_Square F Dec. 18, 2017, 12:47 p.m. OK Java 8 TESTS 48 343 27955200 2200
34182779 kanak893 F Jan. 14, 2018, 6:40 p.m. OK Java 8 TESTS 48 343 40652800 2200
34182886 kanak893 F Jan. 14, 2018, 6:48 p.m. OK Java 8 TESTS 48 358 40448000 2200
33449398 donli F Dec. 20, 2017, 8:15 a.m. OK Java 8 TESTS 48 373 27852800 2200
33359473 Kirundel F Dec. 17, 2017, 6:06 p.m. OK MS C# TESTS 48 779 38707200 2200
33385093 Maffka F Dec. 18, 2017, 4:07 p.m. OK MS C++ TESTS 48 202 15564800 2200
36261490 RCG F March 13, 2018, 9:38 p.m. OK MS C++ TESTS 48 265 27955200 2200
33571906 majsuf F Dec. 23, 2017, 4:41 p.m. OK MS C++ TESTS 48 342 7270400 2200
33829019 Spiritum F Dec. 31, 2017, 9:59 a.m. OK MS C++ TESTS 48 390 15360000 2200
61841492 AleksanderBalobanov F Oct. 4, 2019, 9:49 a.m. OK MS C++ 2017 TESTS 48 1528 204083200 2200
33493051 Darooha F Dec. 22, 2017, 1:28 a.m. OK Ocaml TESTS 48 468 22528000 2200
33553640 Hillmouse F Dec. 23, 2017, 2:48 p.m. OK Rust TESTS 48 436 8806400 2200

remove filters

Back to search problems