Codeforces Round 765 (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
1625 Codeforces Round 765 (Div. 2) FINISHED False 7200 95190863 Jan. 12, 2022, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 604 ) E2 Cats on the Upgrade (hard version) PROGRAMMING data structures dfs and similar graphs trees

B'This is the hard version of the problem. The only difference between the easy and the hard versions are removal queries, they are present only in the hard version. "Interplanetary Software, Inc." together with "Robots of Cydonia, Ltd." has developed and released robot cats. These electronic pets can meow, catch mice and entertain the owner in various ways. The developers from "Interplanetary Software, Inc." have recently decided to release a software update for these robots. After the update, the cats must solve the problems about bracket sequences. One of the problems is described below. First, we need to learn a bit of bracket sequence theory. Consider the strings that contain characters "(", ")" and ".". Call a string regular bracket sequence (RBS), if it can be transformed to an empty string by one or more operations of removing either single "." characters, or a continuous substring "()". For instance, the string "(()(.))" is an RBS, as it can be transformed to an empty string with the following sequence of removals: We got an empty string, so the initial string was an RBS. At the same time, the string ")(" is not an RBS, as it is not possible to apply such removal operations to it. An RBS is simple if this RBS is not empty, doesn 't start with ".", and doesn 't end with ".". Denote the substring of the string s as its sequential subsegment. In particular, s[l ... r] = s_ls_{l+1} ... s_r , where s_i is the i -th character of the string s . Now, move on to the problem statement itself. You are given a string s , initially consisting of characters "(" and ")". You need to answer the following queries: You are an employee in "Interplanetary Software, Inc." and you were given the task to teach the cats to solve the problem above, after the update. The first line contains two integers n and q ( 2 <= n <= 3 cdot10^5 , 1 <= q <= 3 cdot10^5 ), the length of the string, and the number of queries. The sec'...

Tutorials

Editorial of Codeforces Round #765 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
142559310 CrTsIr E2 Jan. 13, 2022, 3:27 a.m. OK GNU C++14 TESTS 26 295 21196800
142557866 KING_OF_TURTLE E2 Jan. 13, 2022, 2:52 a.m. OK GNU C++14 TESTS 26 296 23961600
142558124 WHC-MIK-7521X E2 Jan. 13, 2022, 2:59 a.m. OK GNU C++14 TESTS 26 312 19968000
142554952 zhangjianjuncd E2 Jan. 13, 2022, 1:08 a.m. OK GNU C++14 TESTS 25 327 93081600
142557794 KING_OF_TURTLE E2 Jan. 13, 2022, 2:50 a.m. OK GNU C++14 TESTS 26 342 23961600
142555502 Tyyyyyy E2 Jan. 13, 2022, 1:32 a.m. OK GNU C++14 TESTS 26 358 24268800
142558342 Dogheadman E2 Jan. 13, 2022, 3:05 a.m. OK GNU C++14 TESTS 26 404 35123200
142524009 vishnukhanna01 E2 Jan. 12, 2022, 2:52 p.m. OK GNU C++14 TESTS 24 405 144384000
142517107 RocketCider E2 Jan. 12, 2022, 2:03 p.m. OK GNU C++14 TESTS 24 405 144384000
142517789 lin7xu E2 Jan. 12, 2022, 2:04 p.m. OK GNU C++14 TESTS 24 467 77516800
142522078 fallleaves01 E2 Jan. 12, 2022, 2:37 p.m. OK GNU C++17 TESTS 24 218 43929600
142520951 DerekFeng E2 Jan. 12, 2022, 2:30 p.m. OK GNU C++17 TESTS 24 264 26521600
142532668 Golovanov399 E2 Jan. 12, 2022, 4:27 p.m. OK GNU C++17 TESTS 24 265 18432000
142535835 tourist E2 Jan. 12, 2022, 5:06 p.m. OK GNU C++17 TESTS 24 280 19660800
142537551 flukehn E2 Jan. 12, 2022, 5:27 p.m. OK GNU C++17 TESTS 24 295 26726400
142521474 emofunc E2 Jan. 12, 2022, 2:33 p.m. OK GNU C++17 TESTS 24 311 23654400
142527380 akash_ram E2 Jan. 12, 2022, 3:24 p.m. OK GNU C++17 TESTS 24 311 33382400
142513856 _FireBladeMaster_ E2 Jan. 12, 2022, 1:55 p.m. OK GNU C++17 TESTS 24 312 56115200
142537455 flukehn E2 Jan. 12, 2022, 5:26 p.m. OK GNU C++17 TESTS 24 327 26214400
142536699 qwerty2300730 E2 Jan. 12, 2022, 5:17 p.m. OK GNU C++17 TESTS 24 327 33894400
142541190 jeroenodb E2 Jan. 12, 2022, 6:13 p.m. OK GNU C++17 (64) TESTS 25 202 23040000
142527595 rainboy E2 Jan. 12, 2022, 3:27 p.m. OK GNU C++17 (64) TESTS 24 202 30412800
142541330 jeroenodb E2 Jan. 12, 2022, 6:14 p.m. OK GNU C++17 (64) TESTS 25 218 25395200
142531984 tourist E2 Jan. 12, 2022, 4:19 p.m. OK GNU C++17 (64) TESTS 24 234 37888000
142542052 jeroenodb E2 Jan. 12, 2022, 6:24 p.m. OK GNU C++17 (64) TESTS 25 234 38707200
142557083 xiaoziyaooo E2 Jan. 13, 2022, 2:30 a.m. OK GNU C++17 (64) TESTS 26 264 27955200
142558247 _FlyingColor_ E2 Jan. 13, 2022, 3:03 a.m. OK GNU C++17 (64) TESTS 26 358 37376000
142557891 Juanzhang E2 Jan. 13, 2022, 2:53 a.m. OK GNU C++17 (64) TESTS 26 467 203366400
142526288 SevenDawns E2 Jan. 12, 2022, 3:13 p.m. OK GNU C++17 (64) TESTS 24 483 79667200
142516355 MikeGoutokuji E2 Jan. 12, 2022, 2:01 p.m. OK GNU C++17 (64) TESTS 24 483 100044800
142552849 A_G E2 Jan. 12, 2022, 11:16 p.m. OK GNU C++20 (64) TESTS 25 186 8601600
142530201 HollwoQ_Pelw E2 Jan. 12, 2022, 3:57 p.m. OK GNU C++20 (64) TESTS 24 202 21094400
142532344 tourist E2 Jan. 12, 2022, 4:23 p.m. OK GNU C++20 (64) TESTS 24 218 37990400
142516602 oleh1421 E2 Jan. 12, 2022, 2:02 p.m. OK GNU C++20 (64) TESTS 24 265 39321600
142529097 jiangly E2 Jan. 12, 2022, 3:44 p.m. OK GNU C++20 (64) TESTS 24 280 21504000
142557516 newbiewzs E2 Jan. 13, 2022, 2:42 a.m. OK GNU C++20 (64) TESTS 26 295 125747200
142515019 Eason_AK E2 Jan. 12, 2022, 1:58 p.m. OK GNU C++20 (64) TESTS 24 342 40550400
142515821 IntoTheNight E2 Jan. 12, 2022, 2 p.m. OK GNU C++20 (64) TESTS 24 358 73011200
142514322 Magpie_ E2 Jan. 12, 2022, 1:56 p.m. OK GNU C++20 (64) TESTS 24 467 26521600
142548863 windu E2 Jan. 12, 2022, 8:40 p.m. OK GNU C++20 (64) TESTS 25 546 133939200
142530285 uwi E2 Jan. 12, 2022, 3:58 p.m. OK Java 11 TESTS 24 1840 143155200
142541785 YahiaSherif E2 Jan. 12, 2022, 6:21 p.m. OK Java 8 TESTS 25 780 99635200

remove filters

Back to search problems