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. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1061 ) | E1 | Cats on the Upgrade (easy version) | PROGRAMMING | data structures dfs and similar divide and conquer dp graphs trees |
B'This is the easy 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 queries of the following kind. Given two indices, l and r ( 1 <= l < r <= n ), and it 's guaranteed that the substring s[l ... r] is a simple RBS. You need to find the number of substrings in s[l ... r] such that they are simple RBS. In other words, find the number of index pairs i , j such that l '... |
Editorial of Codeforces Round #765 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
142552965 | spsicio | E1 | Jan. 12, 2022, 11:22 p.m. | OK | GNU C++14 | TESTS | 16 | 217 | 6348800 | ||
142532281 | 342zhuyongqi | E1 | Jan. 12, 2022, 4:22 p.m. | OK | GNU C++14 | TESTS | 16 | 218 | 7270400 | ||
142523752 | CK2021 | E1 | Jan. 12, 2022, 2:50 p.m. | OK | GNU C++14 | TESTS | 15 | 233 | 14540800 | ||
142553870 | KING_OF_TURTLE | E1 | Jan. 13, 2022, 12:14 a.m. | OK | GNU C++14 | TESTS | 16 | 234 | 7987200 | ||
142520641 | eecs | E1 | Jan. 12, 2022, 2:28 p.m. | OK | GNU C++14 | TESTS | 14 | 280 | 13926400 | ||
142516488 | toovegetable | E1 | Jan. 12, 2022, 2:01 p.m. | OK | GNU C++14 | TESTS | 14 | 280 | 96051200 | ||
142521458 | Werner_Yin | E1 | Jan. 12, 2022, 2:33 p.m. | OK | GNU C++14 | TESTS | 14 | 295 | 9011200 | ||
142554384 | KING_OF_TURTLE | E1 | Jan. 13, 2022, 12:39 a.m. | OK | GNU C++14 | TESTS | 16 | 296 | 8704000 | ||
142530342 | Qing_LKYi | E1 | Jan. 12, 2022, 3:58 p.m. | OK | GNU C++14 | TESTS | 16 | 296 | 28160000 | ||
142515892 | Fracture_Ray | E1 | Jan. 12, 2022, 2 p.m. | OK | GNU C++14 | TESTS | 14 | 296 | 96051200 | ||
142522133 | fallleaves01 | E1 | Jan. 12, 2022, 2:37 p.m. | OK | GNU C++17 | TESTS | 14 | 249 | 43929600 | ||
142521076 | DerekFeng | E1 | Jan. 12, 2022, 2:31 p.m. | OK | GNU C++17 | TESTS | 14 | 265 | 26521600 | ||
142521029 | shinigami11 | E1 | Jan. 12, 2022, 2:30 p.m. | OK | GNU C++17 | TESTS | 14 | 280 | 29593600 | ||
142545556 | islingr | E1 | Jan. 12, 2022, 7:24 p.m. | OK | GNU C++17 | TESTS | 16 | 295 | 6451200 | ||
142532213 | Monarchuwu | E1 | Jan. 12, 2022, 4:21 p.m. | OK | GNU C++17 | TESTS | 16 | 296 | 7577600 | ||
142545810 | islingr | E1 | Jan. 12, 2022, 7:29 p.m. | OK | GNU C++17 | TESTS | 16 | 311 | 6451200 | ||
142534655 | The_Hallak | E1 | Jan. 12, 2022, 4:52 p.m. | OK | GNU C++17 | TESTS | 16 | 311 | 9318400 | ||
142551146 | rdfrm | E1 | Jan. 12, 2022, 9:55 p.m. | OK | GNU C++17 | TESTS | 16 | 311 | 13107200 | ||
142521906 | emofunc | E1 | Jan. 12, 2022, 2:36 p.m. | OK | GNU C++17 | TESTS | 14 | 311 | 23654400 | ||
142527349 | akash_ram | E1 | Jan. 12, 2022, 3:24 p.m. | OK | GNU C++17 | TESTS | 16 | 311 | 30310400 | ||
142530837 | BurnoutAg7 | E1 | Jan. 12, 2022, 4:04 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 186 | 5427200 | ||
142510322 | BurnoutAg7 | E1 | Jan. 12, 2022, 1:46 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 202 | 5427200 | ||
142516271 | patcht | E1 | Jan. 12, 2022, 2:01 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 202 | 5836800 | ||
142511247 | TYpeWriting | E1 | Jan. 12, 2022, 1:48 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 202 | 20480000 | ||
142531638 | tourist | E1 | Jan. 12, 2022, 4:14 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 217 | 26521600 | ||
142528764 | huangxiaohua | E1 | Jan. 12, 2022, 3:40 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 233 | 12083200 | ||
142527602 | rainboy | E1 | Jan. 12, 2022, 3:27 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 233 | 30412800 | ||
142514355 | haruki_K | E1 | Jan. 12, 2022, 1:56 p.m. | OK | GNU C++17 (64) | TESTS | 14 | 265 | 57241600 | ||
142527074 | huangxiaohua | E1 | Jan. 12, 2022, 3:21 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 311 | 9932800 | ||
142552066 | bernardo_amorim | E1 | Jan. 12, 2022, 10:37 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 311 | 28569600 | ||
142559032 | dblark | E1 | Jan. 13, 2022, 3:22 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 140 | 10649600 | ||
142515222 | AyanaOl | E1 | Jan. 12, 2022, 1:58 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 156 | 10649600 | ||
142552804 | A_G | E1 | Jan. 12, 2022, 11:13 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 171 | 8601600 | ||
142527518 | windu | E1 | Jan. 12, 2022, 3:26 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 171 | 24064000 | ||
142512874 | unvrs | E1 | Jan. 12, 2022, 1:53 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 171 | 117248000 | ||
142530225 | HollwoQ_Pelw | E1 | Jan. 12, 2022, 3:57 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 186 | 21196800 | ||
142517420 | nlog | E1 | Jan. 12, 2022, 2:03 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 186 | 21504000 | ||
142521381 | inszva | E1 | Jan. 12, 2022, 2:32 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 202 | 19968000 | ||
142512331 | .-O_O-. | E1 | Jan. 12, 2022, 1:51 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 249 | 22016000 | ||
142512011 | physics0523 | E1 | Jan. 12, 2022, 1:50 p.m. | OK | GNU C++20 (64) | TESTS | 14 | 249 | 26214400 | ||
142554894 | dzhi | E1 | Jan. 13, 2022, 1:05 a.m. | OK | Java 11 | TESTS | 16 | 1621 | 78745600 | ||
142522260 | YahiaSherif | E1 | Jan. 12, 2022, 2:38 p.m. | OK | Java 8 | TESTS | 14 | 451 | 28774400 |
Back to search problems