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 |
---|---|---|---|---|---|---|
1835 | Codeforces Round 880 (Div. 1) | FINISHED | False | 7200 | 50167462 | June 18, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 541 ) | D | Doctor's Brown Hypothesis | PROGRAMMING | dfs and similar graphs math number theory |
B"The rebels have been crushed in the most recent battle with the imperial forces, but there is a ray of new hope. Meanwhile, on one of the conquered planets, Luke was getting ready for an illegal street race (which should come as no surprise, given his family history). Luke arrived at the finish line with 88 miles per hour on his speedometer. After getting out of the car, he was greeted by a new reality. It turns out that the battle has not happened yet and will start in exactly k hours. The rebels have placed a single battleship on each of the n planets. m unidirectional wormholes connect the planets. Traversing each wormhole takes exactly one hour. Generals of the Imperium have planned the battle precisely, but their troops cannot dynamically adapt to changing circumstances. Because of this, it is enough for the rebels to move some ships around before the battle to confuse the enemy, secure victory and change the galaxy's fate. Owing to numerous strategical considerations, which we now omit, the rebels would like to choose two ships that will switch places so that both of them will be on the move for the whole time (exactly k hours). In other words, rebels look for two planets, x and y , such that paths of length k exist from x to y and from y to x . Because of the limited fuel supply, choosing one ship would also be acceptable. This ship should fly through the wormholes for k hours and then return to its initial planet. How many ways are there to choose the ships for completing the mission? In the first line of input, there are three integer numbers n , m , and k ( 1 <= q n <= q 10^5 , 0 <= q m <= q 2 cdot 10^5 , n^3 <= q k <= q 10^{18} ) denoting respectively the number of planets, wormholes and hours left until the battle starts. The following m lines contain two integers each, x and y ( 1 <= q x, y <= q n , x ne y ), meanin"... |
Codeforces Round 880 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
210179411 | rainboy | D | June 18, 2023, 7:17 p.m. | OK | GNU C11 | TESTS | 49 | 108 | 11776000 | ||
210162659 | crazy_sea | D | June 18, 2023, 4:28 p.m. | OK | GNU C++14 | TESTS | 49 | 109 | 70041600 | ||
210157311 | cyh_toby | D | June 18, 2023, 4:13 p.m. | OK | GNU C++14 | TESTS | 49 | 140 | 18329600 | ||
210162082 | Potassium | D | June 18, 2023, 4:27 p.m. | OK | GNU C++14 | TESTS | 49 | 171 | 15769600 | ||
210157759 | Otomochi_Una | D | June 18, 2023, 4:15 p.m. | OK | GNU C++14 | TESTS | 49 | 171 | 76902400 | ||
210139618 | realFZzzz | D | June 18, 2023, 3:28 p.m. | OK | GNU C++14 | TESTS | 49 | 202 | 13004800 | ||
210198079 | Sol1 | D | June 19, 2023, 3:30 a.m. | OK | GNU C++14 | TESTS | 49 | 217 | 15052800 | ||
210186949 | tinca_matei | D | June 18, 2023, 10:02 p.m. | OK | GNU C++17 | TESTS | 49 | 124 | 19046400 | ||
210146614 | duality | D | June 18, 2023, 3:44 p.m. | OK | GNU C++17 | TESTS | 49 | 140 | 13107200 | ||
210193369 | archiver | D | June 19, 2023, 1:41 a.m. | OK | GNU C++17 | TESTS | 49 | 171 | 15155200 | ||
210185492 | AliShahali1382 | D | June 18, 2023, 9:16 p.m. | OK | GNU C++17 | TESTS | 49 | 171 | 24166400 | ||
210197253 | Larry1010 | D | June 19, 2023, 3:13 a.m. | OK | GNU C++17 | TESTS | 49 | 171 | 29491200 | ||
210173170 | 1459007298 | D | June 18, 2023, 5:54 p.m. | OK | GNU C++17 | TESTS | 49 | 171 | 76492800 | ||
210161722 | gisp_zjz | D | June 18, 2023, 4:26 p.m. | OK | GNU C++17 | TESTS | 49 | 202 | 61235200 | ||
210123970 | ksun48 | D | June 18, 2023, 2:55 p.m. | OK | GNU C++17 | TESTS | 49 | 264 | 37580800 | ||
210137478 | Um_nik | D | June 18, 2023, 3:23 p.m. | OK | GNU C++17 | TESTS | 49 | 280 | 28364800 | ||
210184895 | rainboy | D | June 18, 2023, 9:01 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 108 | 15564800 | ||
210164110 | Alex_Wei | D | June 18, 2023, 4:32 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 109 | 20172800 | ||
210148688 | zihouzhong | D | June 18, 2023, 3:49 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 109 | 24064000 | ||
210169377 | YeongTree | D | June 18, 2023, 5:19 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 124 | 20070400 | ||
210148616 | q-w-q-w-q | D | June 18, 2023, 3:49 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 124 | 25190400 | ||
210168734 | kotatsugame | D | June 18, 2023, 5:14 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 124 | 26931200 | ||
210156035 | MateoCV | D | June 18, 2023, 4:10 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 155 | 24166400 | ||
210158565 | kdh9949 | D | June 18, 2023, 4:17 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 156 | 20275200 | ||
210190120 | K-H | D | June 18, 2023, 11:55 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 156 | 27955200 | ||
210153438 | SSRS_ | D | June 18, 2023, 4:02 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 171 | 20377600 | ||
210198617 | Legitimity | D | June 19, 2023, 3:42 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 46 | 28774400 | ||
210151409 | maspy | D | June 18, 2023, 3:56 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 62 | 27340800 | ||
210188515 | stkwill | D | June 18, 2023, 10:54 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 93 | 18124800 | ||
210177696 | sephrys | D | June 18, 2023, 6:50 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 108 | 32768000 | ||
210153170 | ecnerwala | D | June 18, 2023, 4:01 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 109 | 19660800 | ||
210188005 | YouKn0wWho | D | June 18, 2023, 10:35 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 124 | 20992000 | ||
210169089 | alvingogo | D | June 18, 2023, 5:17 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 124 | 22016000 | ||
210177642 | EthanZYF | D | June 18, 2023, 6:49 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 124 | 22118400 | ||
210170971 | abc864197532 | D | June 18, 2023, 5:32 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 124 | 22425600 | ||
210184636 | kIee | D | June 18, 2023, 8:55 p.m. | OK | GNU C++20 (64) | TESTS | 49 | 124 | 23552000 | ||
210142513 | Tlatoani | D | June 18, 2023, 3:34 p.m. | OK | Kotlin 1.6 | TESTS | 49 | 810 | 120627200 |
Back to search problems