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 |
---|---|---|---|---|---|---|
( 11724 ) | B | William the Vigilant | PROGRAMMING | implementation strings | 1100 |
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 the correct formal description of the homework assignment: 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 substring. A valid replacement of a character is replacing it with "a", "b" or "c". A string x is a substring of a string y if x can be obtained from y by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end. 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 substring. 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 |
---|---|---|---|---|---|---|---|---|---|---|---|
137306804 | dianzikejidaxue | B | Nov. 29, 2021, 4:55 a.m. | OK | GNU C11 | TESTS | 17 | 421 | 102400 | 1100 | |
137265780 | 1435730 | B | Nov. 28, 2021, 4:58 p.m. | OK | GNU C11 | TESTS | 17 | 436 | 102400 | 1100 | |
137265889 | milan_s1 | B | Nov. 28, 2021, 4:58 p.m. | OK | GNU C11 | TESTS | 17 | 436 | 102400 | 1100 | |
137261522 | Narukara | B | Nov. 28, 2021, 4:38 p.m. | OK | GNU C11 | TESTS | 17 | 436 | 204800 | 1100 | |
137263059 | FIJIEKCFIHDP | B | Nov. 28, 2021, 4:45 p.m. | OK | GNU C11 | TESTS | 17 | 436 | 512000 | 1100 | |
137263073 | Iizshit | B | Nov. 28, 2021, 4:45 p.m. | OK | GNU C11 | TESTS | 17 | 452 | 102400 | 1100 | |
137253476 | tzcatu | B | Nov. 28, 2021, 4:03 p.m. | OK | GNU C11 | TESTS | 17 | 452 | 102400 | 1100 | |
137284854 | wangzhifang | B | Nov. 28, 2021, 11:06 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 102400 | 1100 | |
137253006 | llztxdy | B | Nov. 28, 2021, 4:01 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 204800 | 1100 | |
137275784 | adarsh_sinhg | B | Nov. 28, 2021, 6:56 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 307200 | 1100 | |
137269294 | betao | B | Nov. 28, 2021, 5:33 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 307200 | 1100 | |
137253698 | sumitverma | B | Nov. 28, 2021, 4:03 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 307200 | 1100 | |
137311969 | jaishreeram2001 | B | Nov. 29, 2021, 5:41 a.m. | OK | GNU C++14 | TESTS | 17 | 46 | 307200 | 1100 | |
137291290 | Rhyems | B | Nov. 29, 2021, 3:32 a.m. | OK | GNU C++14 | TESTS | 17 | 46 | 307200 | 1100 | |
137277560 | popover | B | Nov. 28, 2021, 7:33 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 307200 | 1100 | |
137289704 | Sand_Tripper | B | Nov. 29, 2021, 2:42 a.m. | OK | GNU C++14 | TESTS | 17 | 46 | 409600 | 1100 | |
137255699 | beerbelly | B | Nov. 28, 2021, 4:12 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 409600 | 1100 | |
137303381 | A_after_B | B | Nov. 29, 2021, 4:51 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 102400 | 1100 | |
137289251 | xiaoyuefan | B | Nov. 29, 2021, 2:28 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 102400 | 1100 | |
137289593 | lxxxl | B | Nov. 29, 2021, 2:39 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 102400 | 1100 | |
137291715 | __Marksky | B | Nov. 29, 2021, 3:44 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 102400 | 1100 | |
137287605 | Edbert.H | B | Nov. 29, 2021, 1:25 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 204800 | 1100 | |
137291492 | tanvir03 | B | Nov. 29, 2021, 3:38 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 307200 | 1100 | |
137293482 | CheatingBazz | B | Nov. 29, 2021, 4:33 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 307200 | 1100 | |
137309672 | Coforun | B | Nov. 29, 2021, 4:58 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 307200 | 1100 | |
137290933 | zcc2013 | B | Nov. 29, 2021, 3:20 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 307200 | 1100 | |
137293040 | Vaibhav_patel | B | Nov. 29, 2021, 4:22 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 307200 | 1100 | |
137289400 | zykmd | B | Nov. 29, 2021, 2:34 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 102400 | 1100 | |
137259253 | ikr | B | Nov. 28, 2021, 4:27 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 102400 | 1100 | |
137297076 | sparsh2002 | B | Nov. 29, 2021, 4:41 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137312601 | suryakantpandey | B | Nov. 29, 2021, 5:51 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137311778 | Rawat26 | B | Nov. 29, 2021, 5:37 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137311177 | elizavetaa | B | Nov. 29, 2021, 5:27 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137293483 | no_words_to_sky | B | Nov. 29, 2021, 4:33 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137291248 | kitsune | B | Nov. 29, 2021, 3:30 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137290523 | subhadip8617 | B | Nov. 29, 2021, 3:08 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137288131 | rohitrks2003 | B | Nov. 29, 2021, 1:46 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 307200 | 1100 | |
137312179 | not_smurf | B | Nov. 29, 2021, 5:44 a.m. | OK | GNU C++20 (64) | TESTS | 17 | 30 | 307200 | 1100 | |
137280648 | Tanbin_Hasan | B | Nov. 28, 2021, 8:42 p.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137272292 | nirjhorJU | B | Nov. 28, 2021, 6:04 p.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137271897 | baddog | B | Nov. 28, 2021, 5:58 p.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137290947 | Turkhuuu | B | Nov. 29, 2021, 3:21 a.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137292078 | nathan_luiz | B | Nov. 29, 2021, 3:55 a.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137293159 | pratik31 | B | Nov. 29, 2021, 4:25 a.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137306841 | SOKURITSZZ | B | Nov. 29, 2021, 4:56 a.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137310466 | lev1106 | B | Nov. 29, 2021, 5:13 a.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137281784 | zxy0909 | B | Nov. 28, 2021, 9:15 p.m. | OK | GNU C++20 (64) | TESTS | 17 | 31 | 307200 | 1100 | |
137312341 | solo07 | B | Nov. 29, 2021, 5:47 a.m. | OK | Java 11 | TESTS | 17 | 202 | 0 | 1100 | |
137281380 | amanpatel23 | B | Nov. 28, 2021, 9:02 p.m. | OK | Java 11 | TESTS | 17 | 202 | 0 | 1100 | |
137290796 | Sandy_coder2001 | B | Nov. 29, 2021, 3:16 a.m. | OK | Java 11 | TESTS | 17 | 217 | 0 | 1100 | |
137257814 | Nick | B | Nov. 28, 2021, 4:21 p.m. | OK | Java 11 | TESTS | 17 | 218 | 0 | 1100 | |
137310475 | Srikanth1777 | B | Nov. 29, 2021, 5:13 a.m. | OK | Java 11 | TESTS | 17 | 218 | 0 | 1100 | |
137271724 | the_unseen | B | Nov. 28, 2021, 5:56 p.m. | OK | Java 11 | TESTS | 17 | 233 | 0 | 1100 | |
137292927 | Satyaa | B | Nov. 29, 2021, 4:18 a.m. | OK | Java 11 | TESTS | 17 | 233 | 0 | 1100 | |
137260712 | rare_breed | B | Nov. 28, 2021, 4:34 p.m. | OK | Java 11 | TESTS | 17 | 249 | 0 | 1100 | |
137271003 | SaberXpro | B | Nov. 28, 2021, 5:48 p.m. | OK | Java 11 | TESTS | 17 | 280 | 0 | 1100 | |
137268887 | Eslamprog32 | B | Nov. 28, 2021, 5:31 p.m. | OK | Java 11 | TESTS | 17 | 280 | 0 | 1100 | |
137277632 | ChiMasterBing | B | Nov. 28, 2021, 7:35 p.m. | OK | Java 8 | TESTS | 17 | 140 | 0 | 1100 | |
137293280 | nitinrishab2000 | B | Nov. 29, 2021, 4:28 a.m. | OK | Java 8 | TESTS | 17 | 155 | 0 | 1100 | |
137276210 | AnshX | B | Nov. 28, 2021, 7:04 p.m. | OK | Java 8 | TESTS | 17 | 156 | 0 | 1100 | |
137290027 | wyxfwxh250821 | B | Nov. 29, 2021, 2:53 a.m. | OK | Java 8 | TESTS | 17 | 171 | 0 | 1100 | |
137261162 | PRIYANSH_TOMAR | B | Nov. 28, 2021, 4:36 p.m. | OK | Java 8 | TESTS | 17 | 171 | 0 | 1100 | |
137269485 | NerfThis | B | Nov. 28, 2021, 5:35 p.m. | OK | Java 8 | TESTS | 17 | 187 | 0 | 1100 | |
137311240 | ganesh_6 | B | Nov. 29, 2021, 5:28 a.m. | OK | Java 8 | TESTS | 17 | 249 | 4608000 | 1100 | |
137266877 | toufique_husein | B | Nov. 28, 2021, 5:02 p.m. | OK | Java 8 | TESTS | 17 | 311 | 0 | 1100 | |
137258974 | lzwjava | B | Nov. 28, 2021, 4:26 p.m. | OK | Java 8 | TESTS | 17 | 311 | 0 | 1100 | |
137258335 | SuvajitGhosh | B | Nov. 28, 2021, 4:23 p.m. | OK | Java 8 | TESTS | 17 | 327 | 0 | 1100 | |
137272401 | nuchs | B | Nov. 28, 2021, 6:05 p.m. | OK | Kotlin 1.5 | TESTS | 17 | 920 | 0 | 1100 | |
137261034 | xinple | B | Nov. 28, 2021, 4:35 p.m. | OK | MS C++ 2017 | TESTS | 17 | 468 | 512000 | 1100 | |
137256406 | LeterCall | B | Nov. 28, 2021, 4:15 p.m. | OK | MS C++ 2017 | TESTS | 17 | 514 | 307200 | 1100 | |
137291472 | X-33 | B | Nov. 29, 2021, 3:38 a.m. | OK | .NET Core C# | TESTS | 17 | 358 | 4505600 | 1100 | |
137282380 | turch | B | Nov. 28, 2021, 9:34 p.m. | OK | Node.js | TESTS | 17 | 779 | 13824000 | 1100 | |
137261943 | dotdot11 | B | Nov. 28, 2021, 4:40 p.m. | OK | Node.js | TESTS | 17 | 842 | 15667200 | 1100 | |
137283455 | Bad_day_toCode | B | Nov. 28, 2021, 10:12 p.m. | OK | PyPy 3 | TESTS | 17 | 327 | 16179200 | 1100 | |
137255906 | vale46 | B | Nov. 28, 2021, 4:12 p.m. | OK | PyPy 3 | TESTS | 17 | 358 | 9932800 | 1100 | |
137273996 | amanpro_grammer | B | Nov. 28, 2021, 6:28 p.m. | OK | PyPy 3 | TESTS | 17 | 358 | 11468800 | 1100 | |
137279250 | mathdude42 | B | Nov. 28, 2021, 8:09 p.m. | OK | PyPy 3 | TESTS | 17 | 389 | 11980800 | 1100 | |
137268888 | sushmanth.dampur8780 | B | Nov. 28, 2021, 5:31 p.m. | OK | PyPy 3 | TESTS | 17 | 420 | 11264000 | 1100 | |
137252612 | xyxoro | B | Nov. 28, 2021, 3:59 p.m. | OK | PyPy 3 | TESTS | 17 | 421 | 11264000 | 1100 | |
137256480 | harshitkumargupta | B | Nov. 28, 2021, 4:15 p.m. | OK | PyPy 3 | TESTS | 17 | 451 | 11059200 | 1100 | |
137280048 | armsusman | B | Nov. 28, 2021, 8:28 p.m. | OK | PyPy 3 | TESTS | 17 | 468 | 14540800 | 1100 | |
137252508 | _sujm | B | Nov. 28, 2021, 3:59 p.m. | OK | PyPy 3 | TESTS | 17 | 498 | 11468800 | 1100 | |
137254013 | prachir1501 | B | Nov. 28, 2021, 4:05 p.m. | OK | PyPy 3 | TESTS | 17 | 514 | 12390400 | 1100 | |
137312414 | Sujith_ | B | Nov. 29, 2021, 5:48 a.m. | OK | PyPy 3-64 | TESTS | 17 | 312 | 28057600 | 1100 | |
137310312 | Up_there | B | Nov. 29, 2021, 5:10 a.m. | OK | PyPy 3-64 | TESTS | 17 | 327 | 14336000 | 1100 | |
137254300 | cocopalm | B | Nov. 28, 2021, 4:06 p.m. | OK | PyPy 3-64 | TESTS | 17 | 373 | 27136000 | 1100 | |
137300521 | ghoshashis545 | B | Nov. 29, 2021, 4:46 a.m. | OK | PyPy 3-64 | TESTS | 17 | 420 | 15564800 | 1100 | |
137271621 | mik_shakin | B | Nov. 28, 2021, 5:55 p.m. | OK | PyPy 3-64 | TESTS | 17 | 732 | 19968000 | 1100 | |
137270302 | lemiao12 | B | Nov. 28, 2021, 5:41 p.m. | OK | PyPy 3-64 | TESTS | 17 | 748 | 41062400 | 1100 | |
137309985 | aditya.kalra28 | B | Nov. 29, 2021, 5:04 a.m. | OK | PyPy 3-64 | TESTS | 17 | 795 | 20582400 | 1100 | |
137272136 | mik_shakin | B | Nov. 28, 2021, 6:02 p.m. | OK | PyPy 3-64 | TESTS | 17 | 950 | 18022400 | 1100 | |
137277004 | _aadiupadhyay_ | B | Nov. 28, 2021, 7:21 p.m. | OK | PyPy 3-64 | TESTS | 17 | 1122 | 24678400 | 1100 | |
137311370 | rutz12 | B | Nov. 29, 2021, 5:30 a.m. | OK | PyPy 3-64 | TESTS | 17 | 1294 | 14336000 | 1100 | |
137274261 | OLOGY | B | Nov. 28, 2021, 6:32 p.m. | OK | Python 2 | TESTS | 17 | 280 | 10752000 | 1100 | |
137274130 | OLOGY | B | Nov. 28, 2021, 6:30 p.m. | OK | Python 2 | TESTS | 17 | 280 | 10854400 | 1100 | |
137273530 | OLOGY | B | Nov. 28, 2021, 6:21 p.m. | OK | Python 2 | TESTS | 17 | 343 | 12595200 | 1100 | |
137312337 | Multibala | B | Nov. 29, 2021, 5:47 a.m. | OK | Python 3 | TESTS | 17 | 561 | 819200 | 1100 | |
137271648 | mishabhai | B | Nov. 28, 2021, 5:56 p.m. | OK | Python 3 | TESTS | 17 | 795 | 819200 | 1100 | |
137265677 | coderbro10 | B | Nov. 28, 2021, 4:57 p.m. | OK | Python 3 | TESTS | 17 | 935 | 1228800 | 1100 | |
137262513 | bambu07 | B | Nov. 28, 2021, 4:42 p.m. | OK | Python 3 | TESTS | 17 | 966 | 1024000 | 1100 | |
137288724 | QuantumK9 | B | Nov. 29, 2021, 2:09 a.m. | OK | Python 3 | TESTS | 17 | 966 | 1126400 | 1100 | |
137278845 | ta2612 | B | Nov. 28, 2021, 8:01 p.m. | OK | Python 3 | TESTS | 17 | 998 | 921600 | 1100 | |
137259666 | shivansh3950 | B | Nov. 28, 2021, 4:29 p.m. | OK | Python 3 | TESTS | 17 | 998 | 1228800 | 1100 | |
137263434 | 20bcs208 | B | Nov. 28, 2021, 4:47 p.m. | OK | Python 3 | TESTS | 17 | 1013 | 1228800 | 1100 | |
137264909 | masterchief164 | B | Nov. 28, 2021, 4:54 p.m. | OK | Python 3 | TESTS | 17 | 1013 | 1536000 | 1100 | |
137292758 | monkeyDboa | B | Nov. 29, 2021, 4:13 a.m. | OK | Python 3 | TESTS | 17 | 1154 | 921600 | 1100 | |
137284848 | noogler | B | Nov. 28, 2021, 11:06 p.m. | OK | Rust | TESTS | 17 | 62 | 409600 | 1100 | |
137273694 | rustafari | B | Nov. 28, 2021, 6:24 p.m. | OK | Rust | TESTS | 17 | 62 | 819200 | 1100 |
Back to search problems