Deltix Round, Spring 2021 (open for everyone, rated, 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
1523 Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2) FINISHED False 8100 114967511 May 30, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 473 ) G Try Booking PROGRAMMING data structures divide and conquer 3200

B"William owns a flat in central London. He decided to rent his flat out for the next n days to earn some money. Since his flat is in the center of the city, he instantly got m offers in the form (l_i, r_i) , which means that someone wants to book the flat from day l_i until day r_i inclusive. To avoid spending a lot of time figuring out whether it's profitable for him to accept an offer, William decided to develop an algorithm. The algorithm processes all offers as they arrive and will only accept offer i if the following two conditions are satisfied: William isn't sure what value x should have and he asks you for help. For all x from 1 to n he wants you to calculate the total number of days for which the flat would be occupied if the corresponding value will be assigned to x . The first line contains two integers n and m (1 <= n <= 5 cdot 10^4, 1 <= m <= 10^5) , which are the number of days and the number of offers, respectively. Each of the next m lines contains two integers l_i and r_i (1 <= l_i <= r_i <= n) , which describe the i -th renting offer. All offers are given in chronological order. Print n integers. The number in i -th line must be equal to the number of days the flat would be occupied if the algorithm will use the value of x equal to i . The description of segments from the first sample test for each x : "...

Tutorials

Deltix Round, Spring 2021. Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
117936837 duality G May 30, 2021, 9:18 p.m. OK GNU C++11 TESTS 96 217 5734400 3200
117939886 emptyhope G May 30, 2021, 11:37 p.m. OK GNU C++11 TESTS 97 514 142950400 3200
117944694 orzdevinwang G May 31, 2021, 2:43 a.m. OK GNU C++11 TESTS 97 842 487116800 3200
117918793 duality G May 30, 2021, 4:49 p.m. OK GNU C++11 TESTS 95 951 17817600 3200
117929478 sh1194 G May 30, 2021, 6:58 p.m. OK GNU C++11 TESTS 96 1637 91955200 3200
117929547 sh1194 G May 30, 2021, 6:59 p.m. OK GNU C++11 TESTS 96 1668 91955200 3200
117930939 Kaycee G May 30, 2021, 7:18 p.m. OK GNU C++11 TESTS 96 1731 98918400 3200
117912955 Radewoosh G May 30, 2021, 4:28 p.m. OK GNU C++14 TESTS 95 452 55705600 3200
117930030 receed G May 30, 2021, 7:05 p.m. OK GNU C++17 TESTS 96 311 15564800 3200
117944051 Miracle03 G May 31, 2021, 2:25 a.m. OK GNU C++17 TESTS 97 420 403968000 3200
117923107 rama_pang G May 30, 2021, 5:42 p.m. OK GNU C++17 TESTS 95 545 29184000 3200
117915684 fedoseev.timofey G May 30, 2021, 4:39 p.m. OK GNU C++17 TESTS 95 592 45670400 3200
117911186 GyojunYoun G May 30, 2021, 4:20 p.m. OK GNU C++17 TESTS 95 779 393113600 3200
117922409 BaoTrung G May 30, 2021, 5:37 p.m. OK GNU C++17 TESTS 95 826 61542400 3200
117930293 Martin53 G May 30, 2021, 7:09 p.m. OK GNU C++17 TESTS 96 935 64819200 3200
117914324 ksun48 G May 30, 2021, 4:33 p.m. OK GNU C++17 TESTS 95 1341 290713600 3200
117937571 Ant_Man G May 30, 2021, 9:43 p.m. OK GNU C++17 TESTS 96 1528 128102400 3200
117922198 TadijaSebez G May 30, 2021, 5:35 p.m. OK GNU C++17 TESTS 95 1559 10035200 3200
117921181 kefaa2 G May 30, 2021, 5:29 p.m. OK GNU C++17 (64) TESTS 95 280 17510400 3200
117916945 never_giveup G May 30, 2021, 4:43 p.m. OK GNU C++17 (64) TESTS 95 296 17510400 3200
117914655 oleh1421 G May 30, 2021, 4:35 p.m. OK GNU C++17 (64) TESTS 95 358 33280000 3200
117917431 risujiroh G May 30, 2021, 4:45 p.m. OK GNU C++17 (64) TESTS 95 373 26009600 3200
117946041 ShimaRin G May 31, 2021, 3:16 a.m. OK GNU C++17 (64) TESTS 97 389 486297600 3200
117932659 Maksim1744 G May 30, 2021, 7:47 p.m. OK GNU C++17 (64) TESTS 96 420 25292800 3200
117942587 ustze G May 31, 2021, 1:39 a.m. OK GNU C++17 (64) TESTS 97 436 245862400 3200
117946285 ToToMI G May 31, 2021, 3:22 a.m. OK GNU C++17 (64) TESTS 97 436 486297600 3200
117932628 Maksim1744 G May 30, 2021, 7:46 p.m. OK GNU C++17 (64) TESTS 96 467 25292800 3200
117943697 Fulisike G May 31, 2021, 2:16 a.m. OK GNU C++17 (64) TESTS 97 468 134860800 3200

remove filters

Back to search problems