Codeforces Round 740 (Div. 1, based on VK Cup 2021 - Final (Engine))

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
1558 Codeforces Round 740 (Div. 1, based on VK Cup 2021 - Final (Engine)) FINISHED False 9000 107537111 Aug. 24, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 488 ) E Down Below PROGRAMMING binary search dfs and similar graphs meet-in-the-middle shortest paths 3000

B"In a certain video game, the player controls a hero characterized by a single integer value: power. On the current level, the hero got into a system of n caves numbered from 1 to n , and m tunnels between them. Each tunnel connects two distinct caves. Any two caves are connected with at most one tunnel. Any cave can be reached from any other cave by moving via tunnels. The hero starts the level in cave 1 , and every other cave contains a monster. The hero can move between caves via tunnels. If the hero leaves a cave and enters a tunnel, he must finish his movement and arrive at the opposite end of the tunnel. The hero can use each tunnel to move in both directions. However, the hero can not use the same tunnel twice in a row. Formally, if the hero has just moved from cave i to cave j via a tunnel, he can not head back to cave i immediately after, but he can head to any other cave connected to cave j with a tunnel. It is known that at least two tunnels come out of every cave, thus, the hero will never find himself in a dead end even considering the above requirement. To pass the level, the hero must beat the monsters in all the caves. When the hero enters a cave for the first time, he will have to fight the monster in it. The hero can beat the monster in cave i if and only if the hero's power is strictly greater than a_i . In case of beating the monster, the hero's power increases by b_i . If the hero can't beat the monster he's fighting, the game ends and the player loses. After the hero beats the monster in cave i , all subsequent visits to cave i won't have any consequences: the cave won't have any monsters, and the hero's power won't change either. Find the smallest possible power the hero must start the level with to be able to beat all the monsters and pass the level. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= "...

Tutorials

Codeforces Round #740 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
127004345 rainboy E Aug. 25, 2021, 9:58 p.m. OK GNU C11 TESTS 173 109 3993600 3000
126969890 rainboy E Aug. 25, 2021, 12:55 p.m. OK GNU C11 TESTS 173 140 7987200 3000
126980784 idontwannawin E Aug. 25, 2021, 3:07 p.m. OK GNU C++14 TESTS 173 78 3993600 3000
126968906 SrO E Aug. 25, 2021, 12:42 p.m. OK GNU C++14 TESTS 173 78 3993600 3000
126969561 CunFu_ZhuGe E Aug. 25, 2021, 12:51 p.m. OK GNU C++14 TESTS 173 93 3891200 3000
126957958 AoLiGei E Aug. 25, 2021, 10:03 a.m. OK GNU C++14 TESTS 173 93 3993600 3000
126927053 happyguy656 E Aug. 25, 2021, 2:48 a.m. OK GNU C++14 TESTS 173 108 3993600 3000
126955431 jxm2001_ E Aug. 25, 2021, 9:29 a.m. OK GNU C++14 TESTS 173 109 3891200 3000
126958187 Mr_Eight E Aug. 25, 2021, 10:06 a.m. OK GNU C++14 TESTS 173 109 3993600 3000
126946690 _ztyqwq E Aug. 25, 2021, 7:41 a.m. OK GNU C++14 TESTS 173 124 3891200 3000
126944078 ccf_n0i E Aug. 25, 2021, 7:11 a.m. OK GNU C++14 TESTS 173 124 3993600 3000
126943558 acniu E Aug. 25, 2021, 7:05 a.m. OK GNU C++14 TESTS 173 139 3993600 3000
126968647 CuCl2 E Aug. 25, 2021, 12:35 p.m. OK GNU C++17 TESTS 173 78 3993600 3000
126896785 Fulisike E Aug. 24, 2021, 4:38 p.m. OK GNU C++17 TESTS 173 93 3891200 3000
126968880 bkifhr7 E Aug. 25, 2021, 12:42 p.m. OK GNU C++17 TESTS 173 93 3993600 3000
126977018 anodiebird E Aug. 25, 2021, 2:24 p.m. OK GNU C++17 TESTS 173 93 3993600 3000
126980626 01eg E Aug. 25, 2021, 3:05 p.m. OK GNU C++17 TESTS 173 93 3993600 3000
126909190 Vercingetorix E Aug. 24, 2021, 6:17 p.m. OK GNU C++17 TESTS 173 93 4300800 3000
126948709 maximrufed E Aug. 25, 2021, 8:07 a.m. OK GNU C++17 TESTS 173 109 3993600 3000
126958664 _Gabriel E Aug. 25, 2021, 10:13 a.m. OK GNU C++17 TESTS 173 124 3891200 3000
126923597 Vercingetorix E Aug. 25, 2021, 1:27 a.m. OK GNU C++17 TESTS 173 124 3993600 3000
126926538 Pato_Donald E Aug. 25, 2021, 2:38 a.m. OK GNU C++17 TESTS 173 124 4096000 3000
126912745 Leeisateam E Aug. 24, 2021, 7:10 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912740 Leeisateam E Aug. 24, 2021, 7:10 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912732 Leeisateam E Aug. 24, 2021, 7:10 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912725 Leeisateam E Aug. 24, 2021, 7:10 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912709 Leeisateam E Aug. 24, 2021, 7:10 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912656 Leeisateam E Aug. 24, 2021, 7:09 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912651 Leeisateam E Aug. 24, 2021, 7:09 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912646 Leeisateam E Aug. 24, 2021, 7:09 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126922051 Edit_test E Aug. 25, 2021, 12:34 a.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126912756 Leeisateam E Aug. 24, 2021, 7:10 p.m. OK GNU C++17 (64) TESTS 173 46 5017600 3000
126974817 Tlatoani E Aug. 25, 2021, 1:58 p.m. OK Kotlin TESTS 173 1762 23961600 3000
126987920 sansen E Aug. 25, 2021, 4:31 p.m. OK Rust TESTS 173 2245 4812800 3000
126988527 sansen E Aug. 25, 2021, 4:39 p.m. OK Rust TESTS 173 3743 4505600 3000

remove filters

Back to search problems