Codeforces Round 732 (Div. 1)

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
1545 Codeforces Round 732 (Div. 1) FINISHED False 9000 111167663 July 11, 2021, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 86 ) E1 AquaMoon and Time Stop (easy version) PROGRAMMING data structures data structures dp dp 3500

B"Note that the differences between easy and hard versions are the constraints on n and the time limit. You can make hacks only if both versions are solved. AquaMoon knew through foresight that some ghosts wanted to curse tourists on a pedestrian street. But unfortunately, this time, these ghosts were hiding in a barrier, and she couldn't enter this barrier in a short time and destroy them. Therefore, all that can be done is to save any unfortunate person on the street from the ghosts. The pedestrian street can be represented as a one-dimensional coordinate system. There is one person hanging out on the pedestrian street. At the time 0 he is at coordinate x , moving with a speed of 1 unit per second. In particular, at time i the person will be at coordinate x+i . The ghosts are going to cast n curses on the street. The i -th curse will last from time tl_i-1+10^{-18} to time tr_i+1-10^{-18} (exclusively) and will kill people with coordinates from l_i-1+10^{-18} to r_i+1-10^{-18} (exclusively). Formally that means, that the person, whose coordinate is between (l_i-1+10^{-18},r_i+1-10^{-18}) in the time range (tl_i-1+10^{-18},tr_i+1-10^{-18}) will die. To save the person on the street, AquaMoon can stop time at any moment t , and then move the person from his current coordinate x to any coordinate y ( t , x and y are not necessarily integers). The movement costs AquaMoon |x-y| energy. The movement is continuous, so if there exists some cursed area between points x and y at time t , the person will die too. AquaMoon wants to know what is the minimum amount of energy she needs to spend in order to save the person on the street from all n curses. But she is not good at programming. As her friend, can you help her? The first line contains a single integer n ( 1 <= n <= 2000 ) -- the number of curses. The next line"...

Tutorials

Codeforces Round #732 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
122136679 Petr E1 July 11, 2021, 5:56 p.m. OK GNU C++17 TESTS 70 1638 5120000 3500
122173527 sh1194 E1 July 12, 2021, 5:56 a.m. OK GNU C++17 (64) TESTS 70 31 4403200 3500
122173204 sh1194 E1 July 12, 2021, 5:52 a.m. OK GNU C++17 (64) TESTS 70 31 4403200 3500
122172724 sh1194 E1 July 12, 2021, 5:46 a.m. OK GNU C++17 (64) TESTS 70 31 4403200 3500
122168208 You_Know_DP E1 July 12, 2021, 4:37 a.m. OK GNU C++17 (64) TESTS 70 31 4403200 3500
122135243 ecnerwala E1 July 11, 2021, 5:42 p.m. OK GNU C++17 (64) TESTS 70 31 4403200 3500
122172923 sh1194 E1 July 12, 2021, 5:48 a.m. OK GNU C++17 (64) TESTS 70 46 4403200 3500
122155936 Benq E1 July 12, 2021, 12:24 a.m. OK GNU C++17 (64) TESTS 70 46 4505600 3500
122159318 QAQAutoMaton E1 July 12, 2021, 1:52 a.m. OK GNU C++17 (64) TESTS 70 62 47104000 3500
122155364 Benq E1 July 12, 2021, 12:05 a.m. OK GNU C++17 (64) TESTS 70 77 4812800 3500
122153713 Benq E1 July 11, 2021, 11:02 p.m. OK GNU C++17 (64) TESTS 70 155 66048000 3500

remove filters

Back to search problems