Codeforces Round 857 (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
1801 Codeforces Round 857 (Div. 1) FINISHED False 10800 58825463 March 9, 2023, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 504 ) E Gasoline prices PROGRAMMING data structures divide and conquer ds trees

B"There is one gas station in each city of Berland. Gas stations have special pricing, and for each gas station there is a fixed range of prices for which they are ready to sell gasoline. A gas station in the city with the number i is ready to sell gasoline at any price from l_i to r_i inclusive. The King of Berland -- is an exemplary family man, and for m years, two sons were born to him every year. The king's children have been involved in public affairs since early childhood, and at the end of each year they check the honesty of gasoline prices. From birth, the king's children, who are born in the year i , are responsible for checking gasoline prices on the ways from the city of a_i to the city of b_i and from the city of c_i to the city of d_i , respectively. The check is as follows: both children simultaneously start their journey from the cities a_i and c_i , respectively. The first son of the king, born in the year i , moves along the path from the city a_i to the city b_i , and the second -- from the city c_i to the city d_i . Children check that the price of gasoline in the city of a_i coincides with the price of gasoline in the city of c_i . Next, they check that the price of gasoline in the second city on the way from a_i to b_i coincides with the price in the second city on the way from c_i to d_i . Then they repeat the same thing for a couple of third cities on their paths and so on. At the end, they check that the price of gasoline in the city of b_i coincides with the price of gasoline in the city of d_i . It is guaranteed that the length of the path from the city a_i to the city b_i coincides with the length of the path from the city c_i to the city d_i . Gas stations must strictly obey the laws, and therefore all checks of gasoline prices should not reveal violations. Help Berland "...

Tutorials

Codeforces Round #857 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
196650021 CQYZWJH E March 9, 2023, 12:10 p.m. OK GNU C++14 TESTS 113 1294 42393600
196735835 Krystallos E March 10, 2023, 4:22 a.m. OK GNU C++14 TESTS 113 1434 81920000
196640748 inaFSTream E March 9, 2023, 11:40 a.m. OK GNU C++14 TESTS 113 1637 78745600
196650252 algebraist E March 9, 2023, 12:10 p.m. OK GNU C++14 TESTS 113 1684 46080000
196677211 CJ-zhuyifan E March 9, 2023, 3:02 p.m. OK GNU C++14 TESTS 113 2448 70348800
196645808 BigYellowDuck E March 9, 2023, 11:56 a.m. OK GNU C++14 TESTS 113 3041 141004800
196657883 qiliangzhe E March 9, 2023, 12:33 p.m. OK GNU C++14 TESTS 113 3228 114995200
196658868 hos.lyric E March 9, 2023, 12:34 p.m. OK GNU C++14 TESTS 113 3229 90624000
196726594 yyyyxh E March 10, 2023, 12:52 a.m. OK GNU C++14 TESTS 113 3400 127385600
196738079 earthworm E March 10, 2023, 5 a.m. OK GNU C++14 TESTS 113 3462 114995200
196741905 Segment_Treap E March 10, 2023, 5:48 a.m. OK GNU C++17 TESTS 113 2183 44646400
196656102 hank55663 E March 9, 2023, 12:28 p.m. OK GNU C++17 TESTS 113 3103 63488000
196738518 JosthnaBattu_28 E March 10, 2023, 5:07 a.m. OK GNU C++17 TESTS 113 3244 109158400
196650893 blackyuki E March 9, 2023, 12:12 p.m. OK GNU C++17 TESTS 113 3478 111820800
196641519 Um_nik E March 9, 2023, 11:42 a.m. OK GNU C++17 TESTS 113 3494 472268800
196635849 kotatsugame E March 9, 2023, 11:24 a.m. OK GNU C++17 (64) TESTS 113 1169 60518400
196649872 SSRS_ E March 9, 2023, 12:09 p.m. OK GNU C++17 (64) TESTS 113 1325 104448000
196649928 Arraiter E March 9, 2023, 12:09 p.m. OK GNU C++17 (64) TESTS 113 1559 75571200
196657513 QAQAutoMaton E March 9, 2023, 12:32 p.m. OK GNU C++17 (64) TESTS 113 1747 109977600
196694648 tute7627 E March 9, 2023, 5:26 p.m. OK GNU C++17 (64) TESTS 113 2277 82227200
196666101 lqx2005 E March 9, 2023, 1:53 p.m. OK GNU C++17 (64) TESTS 113 2542 80179200
196658313 GRT_2018 E March 9, 2023, 12:33 p.m. OK GNU C++17 (64) TESTS 113 2854 75571200
196722341 275307894a E March 9, 2023, 10:54 p.m. OK GNU C++17 (64) TESTS 113 2916 76902400
196640172 orzdevinwang E March 9, 2023, 11:38 a.m. OK GNU C++17 (64) TESTS 113 3088 298188800
196665070 Appleblue17 E March 9, 2023, 1:48 p.m. OK GNU C++17 (64) TESTS 113 3416 146739200
196654821 fsy_jiaxun_when E March 9, 2023, 12:24 p.m. OK GNU C++20 (64) TESTS 113 1028 48537600
196644302 jiangly E March 9, 2023, 11:51 a.m. OK GNU C++20 (64) TESTS 113 1325 61132800
196678789 socpite E March 9, 2023, 3:14 p.m. OK GNU C++20 (64) TESTS 113 1621 105574400
196653081 bthero E March 9, 2023, 12:19 p.m. OK GNU C++20 (64) TESTS 113 1840 67174400
196683603 noimi E March 9, 2023, 3:59 p.m. OK GNU C++20 (64) TESTS 113 2090 158720000
196680417 noimi E March 9, 2023, 3:34 p.m. OK GNU C++20 (64) TESTS 113 2137 158720000
196658312 Yelan E March 9, 2023, 12:33 p.m. OK GNU C++20 (64) TESTS 113 2183 440422400
196722729 TolyaHo E March 9, 2023, 11:04 p.m. OK GNU C++20 (64) TESTS 113 2199 80896000
196722822 TolyaHo E March 9, 2023, 11:06 p.m. OK GNU C++20 (64) TESTS 113 2214 80896000
196653405 flowerletter E March 9, 2023, 12:20 p.m. OK GNU C++20 (64) TESTS 113 2261 75571200

remove filters

Back to search problems