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 |
---|---|---|---|---|---|---|
1609 | Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) | FINISHED | False | 9000 | 93713099 | Nov. 28, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2135 ) | E | William The Oblivious | PROGRAMMING | data structures divide and conquer dp matrices | 2400 |
B'Before becoming a successful trader William got a university degree. During his education an interesting situation happened, after which William started to listen to homework assignments much more attentively. What follows is a formal description of the homework assignment as William heard it: You are given a string s of length n only consisting of characters "a", "b" and "c". There are q queries of format ( pos, c ), meaning replacing the element of string s at position pos with character c . After each query you must output the minimal number of characters in the string, which have to be replaced, so that the string doesn 't contain string "abc" as a subsequence. A valid replacement of a character is replacing it with "a", "b" or "c". A string x is said to be a subsequence of string y if x can be obtained from y by deleting some characters without changing the ordering of the remaining characters. The first line contains two integers n and q (1 <= n, q <= 10^5) , the length of the string and the number of queries, respectively. The second line contains the string s , consisting of characters "a", "b" and "c". Each of the next q lines contains an integer i and character c (1 <= i <= n) , index and the value of the new item in the string, respectively. It is guaranteed that character 's c value is "a", "b" or "c". For each query output the minimal number of characters that would have to be replaced so that the string doesn 't contain "abc" as a subsequence. Let 's consider the state of the string after each query: '... |
Deltix Round, Autumn 2021. Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
137269177 | yao11617 | E | Nov. 28, 2021, 5:33 p.m. | OK | GNU C++14 | TESTS | 45 | 93 | 6451200 | 2400 | |
137265562 | yao11617 | E | Nov. 28, 2021, 4:57 p.m. | OK | GNU C++14 | TESTS | 45 | 93 | 6451200 | 2400 | |
137254475 | Melania | E | Nov. 28, 2021, 4:06 p.m. | OK | GNU C++14 | TESTS | 45 | 108 | 12800000 | 2400 | |
137260143 | nwi | E | Nov. 28, 2021, 4:31 p.m. | OK | GNU C++14 | TESTS | 45 | 109 | 6348800 | 2400 | |
137288855 | _ztyqwq | E | Nov. 29, 2021, 2:15 a.m. | OK | GNU C++14 | TESTS | 45 | 109 | 9932800 | 2400 | |
137253279 | Xtale_cross | E | Nov. 28, 2021, 4:02 p.m. | OK | GNU C++14 | TESTS | 45 | 109 | 10137600 | 2400 | |
137269777 | Larry0101 | E | Nov. 28, 2021, 5:37 p.m. | OK | GNU C++14 | TESTS | 45 | 124 | 7372800 | 2400 | |
137257596 | Zetr0 | E | Nov. 28, 2021, 4:20 p.m. | OK | GNU C++14 | TESTS | 45 | 139 | 13414400 | 2400 | |
137283271 | Yukino05 | E | Nov. 28, 2021, 10:04 p.m. | OK | GNU C++14 | TESTS | 45 | 139 | 29900800 | 2400 | |
137286513 | DataStructures | E | Nov. 29, 2021, 12:32 a.m. | OK | GNU C++14 | TESTS | 45 | 140 | 9728000 | 2400 | |
137253992 | Arti1990 | E | Nov. 28, 2021, 4:05 p.m. | OK | GNU C++17 | TESTS | 45 | 78 | 49152000 | 2400 | |
137290512 | _FireGhost_ | E | Nov. 29, 2021, 3:07 a.m. | OK | GNU C++17 | TESTS | 45 | 93 | 6553600 | 2400 | |
137265521 | ngyupeng06 | E | Nov. 28, 2021, 4:57 p.m. | OK | GNU C++17 | TESTS | 45 | 93 | 8704000 | 2400 | |
137258364 | gmusya | E | Nov. 28, 2021, 4:23 p.m. | OK | GNU C++17 | TESTS | 45 | 93 | 9932800 | 2400 | |
137286124 | nishit.sharma | E | Nov. 29, 2021, 12:11 a.m. | OK | GNU C++17 | TESTS | 45 | 108 | 5222400 | 2400 | |
137278907 | NegaTeeF | E | Nov. 28, 2021, 8:02 p.m. | OK | GNU C++17 | TESTS | 45 | 108 | 9932800 | 2400 | |
137293086 | panyaoyu1999 | E | Nov. 29, 2021, 4:23 a.m. | OK | GNU C++17 | TESTS | 45 | 108 | 12902400 | 2400 | |
137286106 | nishit.sharma | E | Nov. 29, 2021, 12:11 a.m. | OK | GNU C++17 | TESTS | 45 | 109 | 5222400 | 2400 | |
137264118 | NirvanaYlsq | E | Nov. 28, 2021, 4:50 p.m. | OK | GNU C++17 | TESTS | 45 | 109 | 9728000 | 2400 | |
137282424 | rspr | E | Nov. 28, 2021, 9:35 p.m. | OK | GNU C++17 | TESTS | 45 | 109 | 9932800 | 2400 | |
137275465 | iamnifer | E | Nov. 28, 2021, 6:52 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 77 | 9113600 | 2400 | |
137275363 | iamnifer | E | Nov. 28, 2021, 6:50 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 77 | 9113600 | 2400 | |
137275278 | iamnifer | E | Nov. 28, 2021, 6:49 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 93 | 5120000 | 2400 | |
137252428 | Andreasyan | E | Nov. 28, 2021, 3:59 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 93 | 9728000 | 2400 | |
137282713 | cjoa | E | Nov. 28, 2021, 9:46 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 93 | 9932800 | 2400 | |
137281709 | emorgan5289 | E | Nov. 28, 2021, 9:12 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 93 | 14950400 | 2400 | |
137289441 | zykmd | E | Nov. 29, 2021, 2:35 a.m. | OK | GNU C++17 (64) | TESTS | 45 | 108 | 9728000 | 2400 | |
137286516 | numzero | E | Nov. 29, 2021, 12:32 a.m. | OK | GNU C++17 (64) | TESTS | 45 | 108 | 9728000 | 2400 | |
137264733 | exzang_Remastered | E | Nov. 28, 2021, 4:53 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 108 | 9728000 | 2400 | |
137291225 | kiomi | E | Nov. 29, 2021, 3:30 a.m. | OK | GNU C++17 (64) | TESTS | 45 | 108 | 144588800 | 2400 | |
137254784 | kimden | E | Nov. 28, 2021, 4:08 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 62 | 6553600 | 2400 | |
137281155 | ScarletS | E | Nov. 28, 2021, 8:55 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 62 | 9932800 | 2400 | |
137279368 | czhang2718 | E | Nov. 28, 2021, 8:12 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 62 | 9932800 | 2400 | |
137258479 | .Mahdi. | E | Nov. 28, 2021, 4:24 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 77 | 7475200 | 2400 | |
137272709 | jeroenodb | E | Nov. 28, 2021, 6:10 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 78 | 6348800 | 2400 | |
137311530 | Cleanblue | E | Nov. 29, 2021, 5:33 a.m. | OK | GNU C++20 (64) | TESTS | 45 | 78 | 6553600 | 2400 | |
137283401 | DrearyJoke | E | Nov. 28, 2021, 10:10 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 78 | 6553600 | 2400 | |
137263169 | java. | E | Nov. 28, 2021, 4:46 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 78 | 6553600 | 2400 | |
137269893 | Akulyat | E | Nov. 28, 2021, 5:37 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 78 | 8704000 | 2400 | |
137275855 | Mangooste | E | Nov. 28, 2021, 6:58 p.m. | OK | GNU C++20 (64) | TESTS | 45 | 78 | 9932800 | 2400 | |
137280031 | Dukkha | E | Nov. 28, 2021, 8:28 p.m. | OK | Java 11 | TESTS | 45 | 748 | 43417600 | 2400 | |
137267656 | ialakhtin | E | Nov. 28, 2021, 5:04 p.m. | OK | MS C++ 2017 | TESTS | 45 | 218 | 9932800 | 2400 | |
137262956 | forest | E | Nov. 28, 2021, 4:45 p.m. | OK | MS C++ 2017 | TESTS | 45 | 233 | 12902400 | 2400 | |
137281370 | OLOGY | E | Nov. 28, 2021, 9:02 p.m. | OK | PyPy 2 | TESTS | 45 | 936 | 54476800 | 2400 | |
137283881 | OLOGY | E | Nov. 28, 2021, 10:28 p.m. | OK | PyPy 2 | TESTS | 45 | 966 | 54272000 | 2400 | |
137281053 | OLOGY | E | Nov. 28, 2021, 8:52 p.m. | OK | PyPy 2 | TESTS | 45 | 966 | 54272000 | 2400 | |
137283687 | OLOGY | E | Nov. 28, 2021, 10:21 p.m. | OK | PyPy 2 | TESTS | 45 | 997 | 54272000 | 2400 | |
137283745 | OLOGY | E | Nov. 28, 2021, 10:23 p.m. | OK | PyPy 2 | TESTS | 45 | 1028 | 54169600 | 2400 | |
137270005 | NecroSean38 | E | Nov. 28, 2021, 5:38 p.m. | OK | PyPy 3 | TESTS | 45 | 2137 | 58265600 | 2400 | |
137259771 | NecroSean38 | E | Nov. 28, 2021, 4:29 p.m. | OK | PyPy 3 | TESTS | 45 | 2464 | 58163200 | 2400 | |
137269558 | NecroSean38 | E | Nov. 28, 2021, 5:35 p.m. | OK | PyPy 3 | TESTS | 45 | 2511 | 60108800 | 2400 | |
137263727 | titia | E | Nov. 28, 2021, 4:48 p.m. | OK | PyPy 3-64 | TESTS | 45 | 1356 | 106086400 | 2400 | |
137285821 | noogler | E | Nov. 28, 2021, 11:54 p.m. | OK | Rust | TESTS | 45 | 1216 | 60416000 | 2400 |
Back to search problems