Codeforces Round 901 (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
1874 Codeforces Round 901 (Div. 1) FINISHED False 10800 41095463 Sept. 30, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1778 ) C Jellyfish and EVA PROGRAMMING dp graphs greedy math probabilities

B'Monsters have invaded the town again! Asuka invites her good friend, Jellyfish, to drive EVA with her. There are n cities in the town. All the monsters are in city n . Jellyfish and Asuka are currently in city 1 and need to move to city n to defeat the monsters. There are m roads. The i -th road allows one to travel from city a_i to city b_i . All the roads are directed. That is, one cannot travel from city b_i to a_i using the i -th road. Interestingly, all roads satisfy a_i<b_i . Driving EVA requires two people to work together. However, Asuka and Jellyfish have not done any training together before. Suppose that EVA is currently in city u . Jellyfish and Asuka will both choose an undestroyed road that starts at city u . Suppose Jellyfish and Asuka choose roads that end at cities v_1 and v_2 respectively. If v_1 = v_2 , EVA moves to city v_1 successfully. Otherwise, EVA stays in city u and both roads that they have chosen will be destroyed. It is possible that EVA is currently in city u ( u neq n ) and there are no undestroyed roads that start at city u . In that case, the mission will be a failure. Otherwise, if they reach city n in the end, the mission is considered a success. Every time they choose the roads, Jellyfish knows that Asuka will choose a road randomly. Now, Jellyfish wants to know, if she chooses the roads optimally, what is the maximum probability of the mission being successful. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 2000 ). The description of the test cases follows. The first line of each test case contains two integers, n and m ( 2 <= q n <= q 5000 , 0 <= q m <= q min( frac{n(n-1)}{2}, 2 cdot 10^5) ) -- the number of the cities and the number of the roads. In the following m lines of each test case, eac'...

Tutorials

Codeforces Round 901 (Div. 1, Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
226055297 mban259 C Sept. 30, 2023, 5:16 p.m. OK C# 10 TESTS 40 202 114176000
225978841 KumaTachiRen C Sept. 30, 2023, 3:24 p.m. OK C# 8 TESTS 40 155 6451200
226039767 Gassa C Sept. 30, 2023, 4:38 p.m. OK D TESTS 40 311 98611200
225973570 hos.lyric C Sept. 30, 2023, 3:16 p.m. OK D TESTS 40 639 352972800
226045335 Leasier C Sept. 30, 2023, 4:51 p.m. OK GNU C++14 TESTS 40 139 203264000
226058140 Redpojoe C Sept. 30, 2023, 5:23 p.m. OK GNU C++14 TESTS 40 140 203059200
226045672 busamate C Sept. 30, 2023, 4:52 p.m. OK GNU C++14 TESTS 40 140 204595200
226008287 dushki C Sept. 30, 2023, 4:11 p.m. OK GNU C++14 TESTS 40 155 76902400
226023828 Sqrtyz C Sept. 30, 2023, 4:24 p.m. OK GNU C++14 TESTS 40 155 202547200
225989860 paul2008 C Sept. 30, 2023, 3:40 p.m. OK GNU C++14 TESTS 40 155 203059200
226103881 L7-56 C Oct. 1, 2023, 3:59 a.m. OK GNU C++14 TESTS 41 155 203468800
226039860 Yaimsea C Sept. 30, 2023, 4:38 p.m. OK GNU C++14 TESTS 40 155 304128000
226076044 raoxj C Sept. 30, 2023, 7:30 p.m. OK GNU C++14 TESTS 40 156 202854400
226070040 seeeeeeven7 C Sept. 30, 2023, 6:40 p.m. OK GNU C++14 TESTS 40 171 2764800
226070552 avi0000 C Sept. 30, 2023, 6:43 p.m. OK GNU C++17 TESTS 40 93 15872000
226036918 Monarchuwu C Sept. 30, 2023, 4:32 p.m. OK GNU C++17 TESTS 40 108 2048000
226058359 slonichobot C Sept. 30, 2023, 5:24 p.m. OK GNU C++17 TESTS 40 109 233881600
226059252 ooaa C Sept. 30, 2023, 5:26 p.m. OK GNU C++17 TESTS 40 124 77516800
226056993 CYYsOPaccount C Sept. 30, 2023, 5:20 p.m. OK GNU C++17 TESTS 40 124 152883200
226057447 chaeyihwan C Sept. 30, 2023, 5:21 p.m. OK GNU C++17 TESTS 40 124 202649600
226052978 sha7dow C Sept. 30, 2023, 5:10 p.m. OK GNU C++17 TESTS 40 124 203161600
226058774 _morsmordre_ C Sept. 30, 2023, 5:25 p.m. OK GNU C++17 TESTS 40 124 203264000
226082744 The_Hallak C Sept. 30, 2023, 8:47 p.m. OK GNU C++17 TESTS 40 124 205721600
226006017 limbo16 C Sept. 30, 2023, 4:07 p.m. OK GNU C++17 TESTS 40 124 303820800
226052056 aplysia56108 C Sept. 30, 2023, 5:07 p.m. OK GNU C++17 (64) TESTS 40 93 7475200
225984017 lunchbox C Sept. 30, 2023, 3:31 p.m. OK GNU C++17 (64) TESTS 40 93 202547200
226054194 MIKEFENG C Sept. 30, 2023, 5:13 p.m. OK GNU C++17 (64) TESTS 40 93 203059200
226003275 natsugiri C Sept. 30, 2023, 4:02 p.m. OK GNU C++17 (64) TESTS 40 108 52326400
226000674 zyxoi C Sept. 30, 2023, 3:58 p.m. OK GNU C++17 (64) TESTS 40 108 103833600
225999785 yydtq C Sept. 30, 2023, 3:56 p.m. OK GNU C++17 (64) TESTS 40 108 250777600
226053760 rama_pang C Sept. 30, 2023, 5:12 p.m. OK GNU C++17 (64) TESTS 40 109 3788800
225998651 ooOAM C Sept. 30, 2023, 3:54 p.m. OK GNU C++17 (64) TESTS 40 124 52428800
226035622 EmeraldBlock C Sept. 30, 2023, 4:29 p.m. OK GNU C++17 (64) TESTS 40 124 52531200
226006203 YocyCraft C Sept. 30, 2023, 4:08 p.m. OK GNU C++17 (64) TESTS 40 124 202854400
226006792 stkwill C Sept. 30, 2023, 4:09 p.m. OK GNU C++20 (64) TESTS 40 62 2252800
226042659 shobonvip C Sept. 30, 2023, 4:45 p.m. OK GNU C++20 (64) TESTS 40 62 2355200
226019608 20333333333 C Sept. 30, 2023, 4:15 p.m. OK GNU C++20 (64) TESTS 40 62 110899200
226051486 MAKMED1337 C Sept. 30, 2023, 5:06 p.m. OK GNU C++20 (64) TESTS 40 78 2969600
226056687 EMBailey C Sept. 30, 2023, 5:19 p.m. OK GNU C++20 (64) TESTS 40 78 5632000
225991401 peltorator C Sept. 30, 2023, 3:42 p.m. OK GNU C++20 (64) TESTS 40 78 102502400
226049073 Raiden C Sept. 30, 2023, 5 p.m. OK GNU C++20 (64) TESTS 40 78 504115200
225967787 Marckess C Sept. 30, 2023, 3:08 p.m. OK GNU C++20 (64) TESTS 40 78 504320000
226008823 jiangbowen C Sept. 30, 2023, 4:12 p.m. OK GNU C++20 (64) TESTS 40 92 205312000
226044976 lightseba C Sept. 30, 2023, 4:50 p.m. OK GNU C++20 (64) TESTS 40 93 2457600
226105888 Ste C Oct. 1, 2023, 4:27 a.m. OK Java 11 TESTS 41 608 260915200
226069370 lemon_codes C Sept. 30, 2023, 6:36 p.m. OK Java 17 TESTS 40 452 146124800
225976428 FastFreeTask C Sept. 30, 2023, 3:20 p.m. OK Kotlin 1.6 TESTS 40 452 137011200
226002059 dyukha C Sept. 30, 2023, 4 p.m. OK Kotlin 1.6 TESTS 40 654 145817600
226018565 Tlatoani C Sept. 30, 2023, 4:13 p.m. OK Kotlin 1.6 TESTS 40 795 383078400
226002589 darnley C Sept. 30, 2023, 4:01 p.m. OK Kotlin 1.7 TESTS 40 967 236748800
226086284 darnley C Sept. 30, 2023, 9:49 p.m. OK Kotlin 1.7 TESTS 40 1388 290304000
226042021 shade34 C Sept. 30, 2023, 4:43 p.m. OK PyPy 3 TESTS 40 1777 65638400
226022233 Maruzensky C Sept. 30, 2023, 4:20 p.m. OK PyPy 3-64 TESTS 40 249 12288000
225985868 wkoo C Sept. 30, 2023, 3:34 p.m. OK PyPy 3-64 TESTS 40 327 64921600
226002248 dyppp C Sept. 30, 2023, 4:01 p.m. OK PyPy 3-64 TESTS 40 482 92160000
225974102 dabbler1 C Sept. 30, 2023, 3:17 p.m. OK PyPy 3-64 TESTS 40 561 92569600
226036207 bronze_coder C Sept. 30, 2023, 4:30 p.m. OK PyPy 3-64 TESTS 40 1497 122265600
226053785 WaterColor2037 C Sept. 30, 2023, 5:12 p.m. OK Rust 2021 TESTS 40 108 86118400
226000701 sansen C Sept. 30, 2023, 3:58 p.m. OK Rust 2021 TESTS 40 124 108544000

remove filters

Back to search problems