Codeforces Round 775 (Div. 1, based on Moscow Open Olympiad in Informatics)

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
1648 Codeforces Round 775 (Div. 1, based on Moscow Open Olympiad in Informatics) FINISHED False 8100 90619463 March 6, 2022, 9:55 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 421 ) E Air Reform PROGRAMMING data structures dfs and similar divide and conquer ds graphs implementation trees

B'Berland is a large country with developed airlines. In total, there are n cities in the country that are historically served by the Berlaflot airline. The airline operates bi-directional flights between m pairs of cities, i -th of them connects cities with numbers a_i and b_i and has a price c_i for a flight in both directions. It is known that Berlaflot flights can be used to get from any city to any other (possibly with transfers), and the cost of any route that consists of several consequent flights is equal to the cost of the most expensive of them. More formally, the cost of the route from a city t_1 to a city t_k with (k-2) transfers using cities t_2, t_3, t_4, ldots, t_{k - 1} is equal to the maximum cost of flights from t_1 to t_2 , from t_2 to t_3 , from t_3 to t_4 and so on until the flight from t_{k - 1} to t_k . Of course, all these flights must be operated by Berlaflot. A new airline, S8 Airlines, has recently started operating in Berland. This airline provides bi-directional flights between all pairs of cities that are not connected by Berlaflot direct flights. Thus, between each pair of cities there is a flight of either Berlaflot or S8 Airlines. The cost of S8 Airlines flights is calculated as follows: for each pair of cities x and y that is connected by a S8 Airlines flight, the cost of this flight is equal to the minimum cost of the route between the cities x and y at Berlaflot according to the pricing described earlier. It is known that with the help of S8 Airlines flights you can get from any city to any other with possible transfers, and, similarly to Berlaflot, the cost of a route between any two cities that consists of several S8 Airlines flights is equal to the cost of the most expensive flight. Due to the increased competition with S8 Airlines, Berlaflot decided to introduce an air reform and change t'...

Tutorials

Codeforces Round #775 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
148632065 rainboy E March 6, 2022, 5:28 p.m. OK GNU C11 TESTS 109 1248 22425600
148656273 djq_cpp E March 7, 2022, 2:55 a.m. OK GNU C++14 TESTS 109 467 49152000
148648083 14th_onresp E March 6, 2022, 9:59 p.m. OK GNU C++14 TESTS 109 858 91852800
148647950 14th_onresp E March 6, 2022, 9:56 p.m. OK GNU C++14 TESTS 109 872 91852800
148648182 14th_onresp E March 6, 2022, 10:02 p.m. OK GNU C++14 TESTS 109 873 93388800
148648203 14th_onresp E March 6, 2022, 10:03 p.m. OK GNU C++14 TESTS 109 904 93491200
148605361 Nephren E March 6, 2022, 12:57 p.m. OK GNU C++14 TESTS 109 904 130764800
148652003 fengzhengwei E March 7, 2022, 12:36 a.m. OK GNU C++14 TESTS 109 1013 92467200
148594995 eecs E March 6, 2022, 11:50 a.m. OK GNU C++14 TESTS 109 1294 185446400
148605960 zeliboba E March 6, 2022, 1 p.m. OK GNU C++14 TESTS 109 2105 47820800
148655271 1443356159 E March 7, 2022, 2:26 a.m. OK GNU C++14 TESTS 109 2511 83968000
148657222 KillerX E March 7, 2022, 3:19 a.m. OK GNU C++17 TESTS 109 764 79462400
148653101 izone E March 7, 2022, 1:14 a.m. OK GNU C++17 TESTS 109 826 81203200
148621564 wifiiii E March 6, 2022, 3:16 p.m. OK GNU C++17 TESTS 109 873 91033600
148581620 Um_nik E March 6, 2022, 11:09 a.m. OK GNU C++17 TESTS 109 1216 90521600
148589473 137_345_2814 E March 6, 2022, 11:32 a.m. OK GNU C++17 TESTS 109 1216 192204800
148593416 SpyCheese E March 6, 2022, 11:45 a.m. OK GNU C++17 TESTS 109 1248 113868800
148609222 hank55663 E March 6, 2022, 1:21 p.m. OK GNU C++17 TESTS 109 1310 73728000
148587369 cnnfls_csy E March 6, 2022, 11:26 a.m. OK GNU C++17 TESTS 109 1356 198348800
148607219 alexxela12345 E March 6, 2022, 1:07 p.m. OK GNU C++17 TESTS 109 2839 78131200
148600942 LJC00118 E March 6, 2022, 12:07 p.m. OK GNU C++17 TESTS 109 2932 166297600
148605923 ecnerwala E March 6, 2022, 1 p.m. OK GNU C++17 (64) TESTS 109 405 43724800
148598836 ecnerwala E March 6, 2022, 12:01 p.m. OK GNU C++17 (64) TESTS 109 436 36966400
148581597 maroonrk E March 6, 2022, 11:09 a.m. OK GNU C++17 (64) TESTS 109 592 92569600
148661844 noimi E March 7, 2022, 5:05 a.m. OK GNU C++17 (64) TESTS 109 686 62873600
148597505 Rafbill E March 6, 2022, 11:57 a.m. OK GNU C++17 (64) TESTS 109 763 194867200
148614913 orzdevinwang E March 6, 2022, 2:09 p.m. OK GNU C++17 (64) TESTS 109 763 251904000
148658619 xyf007 E March 7, 2022, 3:54 a.m. OK GNU C++17 (64) TESTS 109 842 92364800
148661874 noimi E March 7, 2022, 5:05 a.m. OK GNU C++17 (64) TESTS 109 889 62873600
148658612 xyf007 E March 7, 2022, 3:53 a.m. OK GNU C++17 (64) TESTS 109 982 92364800
148649419 stevenkplus E March 6, 2022, 10:44 p.m. OK GNU C++17 (64) TESTS 109 1013 91136000
148648160 14th_onresp E March 6, 2022, 10:02 p.m. OK GNU C++20 (64) TESTS 109 686 111206400
148593503 mhq E March 6, 2022, 11:45 a.m. OK GNU C++20 (64) TESTS 109 764 49049600
148593463 Skyqwq E March 6, 2022, 11:45 a.m. OK GNU C++20 (64) TESTS 109 842 152268800
148664602 zhouhuanyi E March 7, 2022, 5:52 a.m. OK GNU C++20 (64) TESTS 109 1154 236748800
148591135 Elegia E March 6, 2022, 11:38 a.m. OK GNU C++20 (64) TESTS 109 1201 117964800
148664745 zhouhuanyi E March 7, 2022, 5:55 a.m. OK GNU C++20 (64) TESTS 109 1201 236748800
148595032 ko_osaga E March 6, 2022, 11:50 a.m. OK GNU C++20 (64) TESTS 109 1248 159129600
148597135 ksun48 E March 6, 2022, 11:56 a.m. OK GNU C++20 (64) TESTS 109 1263 121344000
148618300 gary88 E March 6, 2022, 2:41 p.m. OK GNU C++20 (64) TESTS 109 1403 101068800
148585486 jiangly E March 6, 2022, 11:20 a.m. OK GNU C++20 (64) TESTS 109 1404 81100800

remove filters

Back to search problems