Codeforces Round 902 (Div. 1, based on COMPFEST 15 - Final Round)

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
1876 Codeforces Round 902 (Div. 1, based on COMPFEST 15 - Final Round) FINISHED False 9000 40424063 Oct. 8, 2023, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 145 ) G Clubstep PROGRAMMING binary search brute force data structures greedy trees

B"There is an extremely hard video game that is one of Chaneka's favourite video games. One of the hardest levels in the game is called Clubstep. Clubstep consists of n parts, numbered from 1 to n . Chaneka has practised the level a good amount, so currently, her familiarity value with each part i is a_i . After this, Chaneka can do several (possibly zero) attempts on Clubstep. In each attempt, she dies on one of the n parts. If an attempt dies on part p , that means it only successfully passes through every part k for all 1 <= q k <= q p-1 and it does not reach any part k for all p+1 <= q k <= q n . An attempt that dies on part p takes p seconds. It is known that Chaneka improves much more on the part she dies on than anything else. It is also known that during an attempt, Chaneka does not get to practise that much on the parts she does not reach. So, the effect of an attempt that dies on part p is as follows: Note that each question is independent, so the attempt Chaneka does on a question does not affect the familiarity values of any other questions. The first line contains a single integer n ( 1 <= q n <= q 3 cdot10^5 ) -- the number of parts in Clubstep. The second line contains n integers a_1,a_2,a_3, ldots,a_n ( 1 <= q a_i <= q10^9 ) -- Chaneka's familiarity value with each part. The third line contains a single integer q ( 1 <= q q <= q3 cdot10^5 ) -- the number of questions. The j -th of the next q lines contains three integers l_j , r_j , and x_j ( 1 <= q l_j <= q r_j <= q n ; 1 <= q x_j <= q10^9 ) -- the description of the j -th question. Output q lines with an integer in each line. The integer in the j -th line represents the minimum time (in seconds) for Chaneka to make it such that the familiarity value for every part p ( l_j <= q p <= q r_j ) is at least x_j . For the"...

Tutorials

Codeforces Round #902 (Div. 1, Div. 2, based on COMPFEST 15 — Final Round) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
227274998 Kubic G Oct. 9, 2023, 5:17 a.m. OK GNU C++17 (64) TESTS 63 1856 39936000
227245119 Slamaa G Oct. 8, 2023, 7:18 p.m. OK GNU C++20 (64) TESTS 63 1029 159129600
227209097 gamegame G Oct. 8, 2023, 2:27 p.m. OK GNU C++20 (64) TESTS 63 1029 159129600
227262866 xianboyu G Oct. 9, 2023, 1:22 a.m. OK GNU C++20 (64) TESTS 63 1091 77209600
227262786 xianboyu G Oct. 9, 2023, 1:20 a.m. OK GNU C++20 (64) TESTS 63 1138 113152000
227265937 xianboyu G Oct. 9, 2023, 2:34 a.m. OK GNU C++20 (64) TESTS 63 1169 75980800
227204031 nguyenquocthinhhung G Oct. 8, 2023, 1:51 p.m. OK GNU C++20 (64) TESTS 63 1169 146329600
227195721 Aaeria G Oct. 8, 2023, 12:57 p.m. OK GNU C++20 (64) TESTS 63 1169 146329600
227255190 chappy1 G Oct. 8, 2023, 9:39 p.m. OK GNU C++20 (64) TESTS 63 1216 35532800
227224707 Benq G Oct. 8, 2023, 4:21 p.m. OK GNU C++20 (64) TESTS 63 1232 35532800
227270487 jiangly G Oct. 9, 2023, 4:06 a.m. OK GNU C++20 (64) TESTS 63 1980 47820800

remove filters

Back to search problems