Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + 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
1209 Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) FINISHED False 9000 168972887 Sept. 14, 2019, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3339 ) G1 Into Blocks (easy version) PROGRAMMING data structures ds greedy implementation two pointers 2000

B'This is an easier version of the next problem. In this version, q = 0 . A sequence of integers is called nice if its elements are arranged in blocks like in [3, 3, 3, 4, 1, 1] . Formally, if two elements are equal, everything in between must also be equal. Let 's define difficulty of a sequence as a minimum possible number of elements to change to get a nice sequence. However, if you change at least one element of value x to value y , you must also change all other elements of value x into y as well. For example, for [3, 3, 1, 3, 2, 1, 2] it isn 't allowed to change first 1 to 3 and second 1 to 2 . You need to leave 1 's untouched or change them to the same value. You are given a sequence of integers a_1, a_2, ldots, a_n and q updates. Each update is of form " i x " -- change a_i to x . Updates are not independent (the change stays for the future). Print the difficulty of the initial sequence and of the sequence after every update. The first line contains integers n and q ( 1 <= n <= 200 ,000 , q = 0 ), the length of the sequence and the number of the updates. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 200 ,000 ), the initial sequence. Each of the following q lines contains integers i_t and x_t ( 1 <= i_t <= n , 1 <= x_t <= 200 ,000 ), the position and the new value for this position. Print q+1 integers, the answer for the initial sequence and the answer after every update. '...

Tutorials

69791

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60564189 iica G1 Sept. 14, 2019, 2:57 p.m. OK D TESTS 19 171 53555200 2000
60610193 wasa855 G1 Sept. 15, 2019, 10:42 a.m. OK GNU C++11 TESTS 19 30 2457600 2000
60930917 luogu_bot2 G1 Sept. 20, 2019, 1:44 p.m. OK GNU C++11 TESTS 19 30 5632000 2000
60690445 dysyn1314 G1 Sept. 16, 2019, 5:07 p.m. OK GNU C++11 TESTS 19 31 2252800 2000
62088467 nico123 G1 Oct. 8, 2019, 4:11 a.m. OK GNU C++11 TESTS 19 31 2457600 2000
60724442 luogu_bot2 G1 Sept. 17, 2019, 1:25 p.m. OK GNU C++11 TESTS 19 31 2457600 2000
60706567 Okazaki_Yumemi G1 Sept. 17, 2019, 5:38 a.m. OK GNU C++11 TESTS 19 31 2457600 2000
60562081 LJC00118 G1 Sept. 14, 2019, 2:48 p.m. OK GNU C++11 TESTS 19 31 2457600 2000
60554445 1919810 G1 Sept. 14, 2019, 2:15 p.m. OK GNU C++11 TESTS 19 31 2457600 2000
61348734 ytrsk G1 Sept. 27, 2019, 6:48 a.m. OK GNU C++11 TESTS 19 31 3174400 2000
60910759 wky32768 G1 Sept. 20, 2019, 5:45 a.m. OK GNU C++11 TESTS 19 31 3174400 2000
60561924 wleung_bvg G1 Sept. 14, 2019, 2:47 p.m. OK GNU C++14 TESTS 19 31 2560000 2000
60886865 JhonnyZaz G1 Sept. 19, 2019, 4:28 p.m. OK GNU C++14 TESTS 19 46 2457600 2000
60591797 shdut G1 Sept. 15, 2019, 2:44 a.m. OK GNU C++14 TESTS 19 46 2457600 2000
60588935 Lucky_Glass G1 Sept. 15, 2019, 12:10 a.m. OK GNU C++14 TESTS 19 46 2457600 2000
60585295 860579 G1 Sept. 14, 2019, 8:45 p.m. OK GNU C++14 TESTS 19 46 2457600 2000
61453266 dhydye G1 Sept. 29, 2019, 4:45 a.m. OK GNU C++14 TESTS 19 46 2560000 2000
61113485 Nice_to_meet_you G1 Sept. 23, 2019, 12:06 p.m. OK GNU C++14 TESTS 19 46 3174400 2000
61980709 LanrTabe G1 Oct. 6, 2019, 11:56 a.m. OK GNU C++14 TESTS 19 61 2355200 2000
61251364 Max.D. G1 Sept. 25, 2019, 8:24 a.m. OK GNU C++14 TESTS 19 61 2355200 2000
67781584 tuananh238 G1 Dec. 28, 2019, 11:10 a.m. OK GNU C++14 TESTS 19 61 2457600 2000
60570297 lesskreker G1 Sept. 14, 2019, 3:24 p.m. OK GNU C++17 TESTS 19 31 3276800 2000
63401748 sggutier G1 Oct. 25, 2019, 6:38 p.m. OK GNU C++17 TESTS 19 46 2457600 2000
60957340 keyibin G1 Sept. 21, 2019, 3:28 a.m. OK GNU C++17 TESTS 19 46 2457600 2000
60590879 UniverseofHK G1 Sept. 15, 2019, 2:07 a.m. OK GNU C++17 TESTS 19 46 2457600 2000
60563311 GoogleBot G1 Sept. 14, 2019, 2:53 p.m. OK GNU C++17 TESTS 19 46 2457600 2000
62946940 Golam_Rahman_Chowdhury G1 Oct. 19, 2019, 5:42 p.m. OK GNU C++17 TESTS 19 46 3174400 2000
60590310 Aphelios G1 Sept. 15, 2019, 1:37 a.m. OK GNU C++17 TESTS 19 46 3174400 2000
60723398 vjudge5 G1 Sept. 17, 2019, 1:05 p.m. OK GNU C++17 TESTS 19 61 2355200 2000
67848168 dinosaurs G1 Dec. 28, 2019, 11:36 p.m. OK GNU C++17 TESTS 19 61 2457600 2000
65950173 jasonleft G1 Nov. 29, 2019, 10:29 a.m. OK GNU C++17 TESTS 19 61 2457600 2000
60579410 BNL G1 Sept. 14, 2019, 5:49 p.m. OK Java 8 TESTS 19 124 0 2000
60663059 yaoct G1 Sept. 16, 2019, 6:15 a.m. OK Java 8 TESTS 19 140 2048000 2000
60598788 mennafadali G1 Sept. 15, 2019, 7:13 a.m. OK Java 8 TESTS 19 155 2048000 2000
60549187 VArtem G1 Sept. 14, 2019, 1:54 p.m. OK Java 8 TESTS 19 155 2969600 2000
60551809 ilyakor G1 Sept. 14, 2019, 2:04 p.m. OK Java 8 TESTS 19 155 4812800 2000
61513931 vjudge2 G1 Sept. 29, 2019, 4:52 p.m. OK Java 8 TESTS 19 156 3788800 2000
60654186 miktik G1 Sept. 15, 2019, 9:24 p.m. OK Java 8 TESTS 19 156 9625600 2000
60565101 eatmore G1 Sept. 14, 2019, 3:01 p.m. OK Java 8 TESTS 19 170 10649600 2000
60557140 StayAwayFromBitches G1 Sept. 14, 2019, 2:26 p.m. OK Java 8 TESTS 19 171 2150400 2000
60557115 uwi G1 Sept. 14, 2019, 2:26 p.m. OK Java 8 TESTS 19 171 3891200 2000
60560874 alexey.enkov G1 Sept. 14, 2019, 2:42 p.m. OK Kotlin TESTS 19 296 14848000 2000
60558455 Tlatoani G1 Sept. 14, 2019, 2:32 p.m. OK Kotlin TESTS 19 421 4812800 2000
62744900 darnley G1 Oct. 16, 2019, 9:08 p.m. OK Kotlin TESTS 19 529 66560000 2000
60556380 darnley G1 Sept. 14, 2019, 2:23 p.m. OK Kotlin TESTS 19 561 61542400 2000
60564846 PugachAG G1 Sept. 14, 2019, 3 p.m. OK Kotlin TESTS 19 655 66252800 2000
60927708 vjudge1 G1 Sept. 20, 2019, 12:46 p.m. OK MS C++ TESTS 19 46 3174400 2000
60591071 vjudge4 G1 Sept. 15, 2019, 2:15 a.m. OK MS C++ TESTS 19 46 3174400 2000
61202568 vjudge4 G1 Sept. 24, 2019, 8:22 a.m. OK MS C++ TESTS 19 46 24064000 2000
60553913 math957963 G1 Sept. 14, 2019, 2:13 p.m. OK MS C++ TESTS 19 62 2355200 2000
60590952 vjudge5 G1 Sept. 15, 2019, 2:10 a.m. OK MS C++ TESTS 19 78 2457600 2000
60955712 vjudge1 G1 Sept. 21, 2019, 2:27 a.m. OK MS C++ TESTS 19 124 3584000 2000
61056484 ZJM782473006 G1 Sept. 22, 2019, 8:13 a.m. OK MS C++ TESTS 19 156 9625600 2000
60576103 tarattata1 G1 Sept. 14, 2019, 4:44 p.m. OK MS C++ TESTS 19 202 13721600 2000
60556584 youx G1 Sept. 14, 2019, 2:24 p.m. OK MS C++ 2017 TESTS 19 78 4096000 2000
62919194 vjudge5 G1 Oct. 19, 2019, 9:32 a.m. OK MS C++ 2017 TESTS 19 139 14745600 2000
60567169 Timonnable G1 Sept. 14, 2019, 3:11 p.m. OK MS C++ 2017 TESTS 19 171 6860800 2000
60568152 serg3000 G1 Sept. 14, 2019, 3:15 p.m. OK MS C++ 2017 TESTS 19 186 4812800 2000
60567982 zjuwyz G1 Sept. 14, 2019, 3:14 p.m. OK MS C++ 2017 TESTS 19 233 13209600 2000
60570996 fuermowei G1 Sept. 14, 2019, 3:27 p.m. OK MS C++ 2017 TESTS 19 265 12083200 2000
60600236 shehebe G1 Sept. 15, 2019, 7:43 a.m. OK PyPy 2 TESTS 19 218 18124800 2000
60604458 zdbtxdy G1 Sept. 15, 2019, 8:59 a.m. OK PyPy 2 TESTS 19 311 48435200 2000
60557909 TheManTheMythTheLegend G1 Sept. 14, 2019, 2:30 p.m. OK PyPy 2 TESTS 19 327 35942400 2000
60571981 Pyar.Mahobat.Dhoka.Hai G1 Sept. 14, 2019, 3:30 p.m. OK PyPy 2 TESTS 19 546 31027200 2000
61293584 Leendertz G1 Sept. 25, 2019, 10:42 p.m. OK PyPy 3 TESTS 19 218 25088000 2000
61321452 Jarik G1 Sept. 26, 2019, 12:42 p.m. OK PyPy 3 TESTS 19 233 24473600 2000
60549042 Sait2000 G1 Sept. 14, 2019, 1:54 p.m. OK PyPy 3 TESTS 19 311 19968000 2000
60655332 Stephan G1 Sept. 15, 2019, 10:38 p.m. OK PyPy 3 TESTS 19 312 19558400 2000
60706054 ashok123 G1 Sept. 17, 2019, 5:16 a.m. OK PyPy 3 TESTS 19 326 19968000 2000
61174085 hop-hop G1 Sept. 23, 2019, 5:17 p.m. OK PyPy 3 TESTS 19 326 26009600 2000
60569332 dn6049949 G1 Sept. 14, 2019, 3:20 p.m. OK PyPy 3 TESTS 19 530 58675200 2000
60564138 Kiri8128 G1 Sept. 14, 2019, 2:57 p.m. OK PyPy 3 TESTS 19 545 53862400 2000
60566204 Sevlll G1 Sept. 14, 2019, 3:06 p.m. OK PyPy 3 TESTS 19 780 44544000 2000
60565594 titia G1 Sept. 14, 2019, 3:03 p.m. OK PyPy 3 TESTS 19 811 19353600 2000
60580230 Gaurav1 G1 Sept. 14, 2019, 6:09 p.m. OK Python 3 TESTS 19 452 25702400 2000
60580797 PanZverski G1 Sept. 14, 2019, 6:23 p.m. OK Python 3 TESTS 19 514 14233600 2000
60573171 PanZverski G1 Sept. 14, 2019, 3:34 p.m. OK Python 3 TESTS 19 530 14233600 2000
64762064 cameliapatilea G1 Nov. 12, 2019, 7:24 p.m. OK Python 3 TESTS 19 530 28672000 2000
60559584 VTifand G1 Sept. 14, 2019, 2:37 p.m. OK Python 3 TESTS 19 685 28262400 2000
60701387 NocturneBflat G1 Sept. 17, 2019, 12:52 a.m. OK Python 3 TESTS 19 763 48332800 2000
60568125 sansen G1 Sept. 14, 2019, 3:15 p.m. OK Rust TESTS 19 31 5324800 2000
60686027 yakamoto G1 Sept. 16, 2019, 3:28 p.m. OK Scala TESTS 19 576 12185600 2000

remove filters

Back to search problems