Educational Codeforces Round 126 (Rated for 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
1661 Educational Codeforces Round 126 (Rated for Div. 2) FINISHED False 7200 87665063 April 9, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 627 ) F Teleporters PROGRAMMING binary search greedy math

B"There are n+1 teleporters on a straight line, located in points 0 , a_1 , a_2 , a_3 , ..., a_n . It's possible to teleport from point x to point y if there are teleporters in both of those points, and it costs (x-y)^2 energy. You want to install some additional teleporters so that it is possible to get from the point 0 to the point a_n (possibly through some other teleporters) spending no more than m energy in total. Each teleporter you install must be located in an integer point. What is the minimum number of teleporters you have to install? The first line contains one integer n ( 1 <= n <= 2 cdot 10^5 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_1 < a_2 < a_3 < ... < a_n <= 10^9 ). The third line contains one integer m ( a_n <= m <= 10^{18} ). Print one integer -- the minimum number of teleporters you have to install so that it is possible to get from 0 to a_n spending at most m energy. It can be shown that it's always possible under the constraints from the input format. "...

Tutorials

Educational Codeforces Round 126 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
153220422 Serval F April 9, 2022, 4:40 p.m. OK GNU C++14 TESTS 114 967 13824000
153218499 Timsei F April 9, 2022, 4:33 p.m. OK GNU C++14 TESTS 114 3057 16691200
153248937 grass8cow F April 10, 2022, 1:05 a.m. OK GNU C++14 TESTS 114 4227 3174400
153249459 CunFu_ZhuGe F April 10, 2022, 1:24 a.m. OK GNU C++14 TESTS 114 4914 1024000
153249757 bcofwy060 F April 10, 2022, 1:34 a.m. OK GNU C++14 TESTS 114 5226 4300800
153249262 Jonothor_Darry F April 10, 2022, 1:17 a.m. OK GNU C++14 TESTS 114 5833 2355200
153262544 qinzhaoyang F April 10, 2022, 5:51 a.m. OK GNU C++14 TESTS 115 6738 48128000
153263203 qinzhaoyang F April 10, 2022, 5:59 a.m. OK GNU C++14 TESTS 115 6972 48844800
153257511 Pechalka F April 10, 2022, 4:38 a.m. OK GNU C++17 TESTS 114 1637 2252800
153251003 Fairy_Tale F April 10, 2022, 2:10 a.m. OK GNU C++17 TESTS 114 2745 2457600
153213602 ITO F April 9, 2022, 4:21 p.m. OK GNU C++17 TESTS 114 2901 12697600
153226513 Kilani F April 9, 2022, 5:30 p.m. OK GNU C++17 TESTS 114 2995 1638400
153250393 koko11156 F April 10, 2022, 1:53 a.m. OK GNU C++17 TESTS 114 3057 819200
153231239 thanhan F April 9, 2022, 6:31 p.m. OK GNU C++17 TESTS 114 3057 819200
153228974 LipArcanjo F April 9, 2022, 6:01 p.m. OK GNU C++17 TESTS 114 4196 1638400
153228960 LipArcanjo F April 9, 2022, 6 p.m. OK GNU C++17 TESTS 114 4274 1638400
153235916 qwerty2300730 F April 9, 2022, 7:39 p.m. OK GNU C++17 TESTS 114 4742 1638400
153227354 mohamedelsadek F April 9, 2022, 5:40 p.m. OK GNU C++17 TESTS 114 4867 1638400
153249738 PurpleCrayon F April 10, 2022, 1:33 a.m. OK GNU C++17 (64) TESTS 114 171 4812800
153248515 JaroslavUrban F April 10, 2022, 12:50 a.m. OK GNU C++17 (64) TESTS 114 966 12697600
153233748 natofp F April 9, 2022, 7:08 p.m. OK GNU C++17 (64) TESTS 114 1060 819200
153236943 Andreasyan F April 9, 2022, 7:56 p.m. OK GNU C++17 (64) TESTS 114 1232 5017600
153223086 QuartZ_Z F April 9, 2022, 4:57 p.m. OK GNU C++17 (64) TESTS 114 1279 716800
153211421 Kratrissa F April 9, 2022, 4:15 p.m. OK GNU C++17 (64) TESTS 114 1325 819200
153241491 PurpleCrayon F April 9, 2022, 9:17 p.m. OK GNU C++17 (64) TESTS 114 2293 2457600
153254381 tyin F April 10, 2022, 3:33 a.m. OK GNU C++17 (64) TESTS 114 3073 7987200
153224450 Merlininice F April 9, 2022, 5:08 p.m. OK GNU C++17 (64) TESTS 114 3135 1536000
153251500 enslaved F April 10, 2022, 2:20 a.m. OK GNU C++17 (64) TESTS 114 3276 819200
153250718 HollwoQ_Pelw F April 10, 2022, 2:02 a.m. OK GNU C++20 (64) TESTS 114 1060 819200
153256487 CCPSDCGK F April 10, 2022, 4:19 a.m. OK GNU C++20 (64) TESTS 114 1170 3174400
153224764 CCPSDCGK F April 9, 2022, 5:12 p.m. OK GNU C++20 (64) TESTS 114 1170 3174400
153235039 dean.menezes F April 9, 2022, 7:26 p.m. OK GNU C++20 (64) TESTS 114 1310 819200
153220353 golikovnik F April 9, 2022, 4:39 p.m. OK GNU C++20 (64) TESTS 114 1950 4812800
153230641 Mangooste F April 9, 2022, 6:23 p.m. OK GNU C++20 (64) TESTS 114 2089 1638400
153230412 Mangooste F April 9, 2022, 6:20 p.m. OK GNU C++20 (64) TESTS 114 2168 1638400
153225136 IsaacMoris F April 9, 2022, 5:15 p.m. OK GNU C++20 (64) TESTS 114 2183 8499200
153249419 brunovsky F April 10, 2022, 1:22 a.m. OK GNU C++20 (64) TESTS 114 2230 819200
153237746 IsaacMoris F April 9, 2022, 8:09 p.m. OK GNU C++20 (64) TESTS 114 2246 2150400
153216104 sansen F April 9, 2022, 4:27 p.m. OK Rust 2021 TESTS 114 2262 220262400
153212966 sansen F April 9, 2022, 4:19 p.m. OK Rust 2021 TESTS 114 2682 359731200

remove filters

Back to search problems