Codeforces Round 595 (Div. 3)

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
1249 Codeforces Round 595 (Div. 3) FINISHED False 8100 165684287 Oct. 22, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9928 ) E By Elevator or Stairs? PROGRAMMING dp shortest paths 1700

B'You are planning to buy an apartment in a n -floor building. The floors are numbered from 1 to n from the bottom to the top. At first for each floor you want to know the minimum total time to reach it from the first (the bottom) floor. Let: In one move, you can go from the floor you are staying at x to any floor y ( x ne y ) in two different ways: You can perform as many moves as you want (possibly zero). So your task is for each i to determine the minimum total time it takes to reach the i -th floor from the 1 -st (bottom) floor. The first line of the input contains two integers n and c ( 2 <= n <= 2 cdot 10^5, 1 <= c <= 1000 ) -- the number of floors in the building and the time overhead for the elevator rides. The second line of the input contains n - 1 integers a_1, a_2, ... , a_{n-1} ( 1 <= a_i <= 1000 ), where a_i is the time required to go from the i -th floor to the (i+1) -th one (and from the (i+1) -th to the i -th as well) using the stairs. The third line of the input contains n - 1 integers b_1, b_2, ... , b_{n-1} ( 1 <= b_i <= 1000 ), where b_i is the time required to go from the i -th floor to the (i+1) -th one (and from the (i+1) -th to the i -th as well) using the elevator. Print n integers t_1, t_2, ... , t_n , where t_i is the minimum total time to reach the i -th floor from the first floor if you can perform as many moves as you want. '...

Tutorials

Codeforces Round #595 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
63241237 tranminhprvt01 E Oct. 23, 2019, 1:30 p.m. OK FPC TESTS 51 654 7987200 1700
63251410 Just_Matvey E Oct. 23, 2019, 4:11 p.m. OK FPC TESTS 51 701 17612800 1700
63917796 jschr E Oct. 31, 2019, 10:41 a.m. OK GNU C11 TESTS 51 748 3174400 1700
64888174 Dream.to E Nov. 14, 2019, 1:48 p.m. OK GNU C11 TESTS 51 794 1638400 1700
63235656 eatingmore E Oct. 23, 2019, 12:12 p.m. OK GNU C++11 TESTS 51 46 3174400 1700
63224663 chenyewei_1234 E Oct. 23, 2019, 8:55 a.m. OK GNU C++11 TESTS 51 46 3174400 1700
63223748 _liquid E Oct. 23, 2019, 8:40 a.m. OK GNU C++11 TESTS 51 46 3174400 1700
63245878 luogu_bot5 E Oct. 23, 2019, 2:39 p.m. OK GNU C++11 TESTS 51 46 3174400 1700
63269285 Tajx E Oct. 24, 2019, 2:53 a.m. OK GNU C++11 TESTS 51 46 3993600 1700
63235377 AyoAyowei E Oct. 23, 2019, 12:09 p.m. OK GNU C++11 TESTS 51 46 3993600 1700
66485794 vjudge1 E Dec. 8, 2019, 6:18 a.m. OK GNU C++11 TESTS 51 46 16076800 1700
63217282 hsm_2021 E Oct. 23, 2019, 6:35 a.m. OK GNU C++11 TESTS 51 46 18432000 1700
63223000 Haworthia E Oct. 23, 2019, 8:28 a.m. OK GNU C++11 TESTS 51 62 3174400 1700
63734310 Dream-chasing_Juvenile E Oct. 29, 2019, 2:53 p.m. OK GNU C++11 TESTS 51 62 3174400 1700
63265932 BeNoble E Oct. 24, 2019, 12:03 a.m. OK GNU C++14 TESTS 51 77 3379200 1700
63214140 MicroMaker E Oct. 23, 2019, 5:21 a.m. OK GNU C++14 TESTS 51 109 3174400 1700
63208668 iamrk E Oct. 23, 2019, 2:11 a.m. OK GNU C++14 TESTS 51 124 1638400 1700
65163818 HipHop E Nov. 16, 2019, 12:29 p.m. OK GNU C++14 TESTS 51 124 2355200 1700
63203501 vinhntndu E Oct. 22, 2019, 9:59 p.m. OK GNU C++14 TESTS 51 124 2457600 1700
63726491 vjudge4 E Oct. 29, 2019, 12:49 p.m. OK GNU C++14 TESTS 51 124 2457600 1700
64193833 ACdreams E Nov. 4, 2019, 8:51 a.m. OK GNU C++14 TESTS 51 124 2457600 1700
66593535 -OneZero E Dec. 10, 2019, 1:49 p.m. OK GNU C++14 TESTS 51 124 3174400 1700
67032293 john-wick E Dec. 16, 2019, 4:14 p.m. OK GNU C++14 TESTS 51 124 3174400 1700
66673955 nysanier E Dec. 12, 2019, 10:31 a.m. OK GNU C++14 TESTS 51 124 3174400 1700
64439412 thtsshz_bgwrswh E Nov. 7, 2019, 3:23 a.m. OK GNU C++17 TESTS 51 109 3174400 1700
63208088 hello201999 E Oct. 23, 2019, 1:39 a.m. OK GNU C++17 TESTS 51 109 3993600 1700
63670755 wudixixi E Oct. 28, 2019, 4:48 p.m. OK GNU C++17 TESTS 51 109 4812800 1700
64167295 vjudge5 E Nov. 3, 2019, 4:49 p.m. OK GNU C++17 TESTS 51 109 7987200 1700
63490045 holaalex2204 E Oct. 26, 2019, 2:17 p.m. OK GNU C++17 TESTS 51 124 1536000 1700
63261519 Vanster E Oct. 23, 2019, 8:31 p.m. OK GNU C++17 TESTS 51 124 1638400 1700
65290994 ZUST-18ZZL E Nov. 18, 2019, 9:47 a.m. OK GNU C++17 TESTS 51 124 1638400 1700
65290937 vjudge4 E Nov. 18, 2019, 9:46 a.m. OK GNU C++17 TESTS 51 124 1638400 1700
63403785 Vasyl_Protsiv E Oct. 25, 2019, 7:24 p.m. OK GNU C++17 TESTS 51 124 1638400 1700
63302795 ELT_AW E Oct. 24, 2019, 2:45 p.m. OK GNU C++17 TESTS 51 124 1638400 1700
63431622 z20124528 E Oct. 26, 2019, 9:18 a.m. OK Go TESTS 51 249 4505600 1700
63364783 synapse E Oct. 25, 2019, 7:04 a.m. OK Go TESTS 51 249 4505600 1700
63364688 synapse E Oct. 25, 2019, 7:02 a.m. OK Go TESTS 51 249 4505600 1700
63430997 z20124528 E Oct. 26, 2019, 9:07 a.m. OK Go TESTS 51 249 9011200 1700
63620030 stefan.sakalik E Oct. 27, 2019, 10:06 p.m. OK Go TESTS 51 327 26931200 1700
63420390 yang12138 E Oct. 26, 2019, 6:11 a.m. OK Go TESTS 51 872 4505600 1700
63429866 z20124528 E Oct. 26, 2019, 8:50 a.m. OK Go TESTS 51 889 4505600 1700
66219856 lpls1 E Dec. 3, 2019, 10:26 a.m. OK Java 11 TESTS 51 265 5017600 1700
63397837 LightYagami674 E Oct. 25, 2019, 5:15 p.m. OK Java 11 TESTS 51 280 0 1700
64800118 Azakarka E Nov. 13, 2019, 2:18 p.m. OK Java 11 TESTS 51 280 204800 1700
64799186 IslamTalipovTop E Nov. 13, 2019, 1:59 p.m. OK Java 11 TESTS 51 296 5632000 1700
67140150 lightseba E Dec. 18, 2019, 6:23 a.m. OK Java 11 TESTS 51 296 6656000 1700
64785229 potatmen E Nov. 13, 2019, 8:53 a.m. OK Java 11 TESTS 51 327 10649600 1700
64271952 machhra E Nov. 4, 2019, 7:28 p.m. OK Java 11 TESTS 51 327 18022400 1700
69622379 cribabby E Jan. 27, 2020, 2:50 p.m. OK Java 11 TESTS 51 951 5734400 1700
63278847 sushant_verma E Oct. 24, 2019, 7:58 a.m. OK Java 11 TESTS 51 982 5427200 1700
64259070 kamesh.joshi E Nov. 4, 2019, 3:57 p.m. OK Java 11 TESTS 51 1232 0 1700
63253515 Sharon E Oct. 23, 2019, 4:48 p.m. OK Java 8 TESTS 51 156 0 1700
63207286 derrick20 E Oct. 23, 2019, 12:58 a.m. OK Java 8 TESTS 51 171 0 1700
64735490 barakraganosungam E Nov. 12, 2019, 10:09 a.m. OK Java 8 TESTS 51 186 1945600 1700
63200146 MakeMoroccoGreatAgain E Oct. 22, 2019, 8:08 p.m. OK Java 8 TESTS 51 186 4300800 1700
68063396 amolpratap007 E Jan. 2, 2020, 6:07 a.m. OK Java 8 TESTS 51 186 5017600 1700
63696531 anto777 E Oct. 29, 2019, 5:40 a.m. OK Java 8 TESTS 51 186 10342400 1700
64709369 Leendertz E Nov. 11, 2019, 5:56 p.m. OK Java 8 TESTS 51 187 2252800 1700
63905638 Faizan E Oct. 31, 2019, 6:32 a.m. OK Java 8 TESTS 51 187 4608000 1700
63245135 In_The_Name_Of_Love E Oct. 23, 2019, 2:27 p.m. OK Java 8 TESTS 51 187 4608000 1700
64668657 dyhu083 E Nov. 11, 2019, 4:23 a.m. OK Java 8 TESTS 51 187 5427200 1700
63219324 Spheniscine E Oct. 23, 2019, 7:24 a.m. OK Kotlin TESTS 51 202 9216000 1700
63429059 yanire E Oct. 26, 2019, 8:38 a.m. OK Kotlin TESTS 51 467 19148800 1700
63772909 satyamcse E Oct. 30, 2019, 8:36 a.m. OK Kotlin TESTS 51 483 22425600 1700
64932713 tomomo2b2 E Nov. 15, 2019, 3:35 a.m. OK Mono C# TESTS 51 217 41062400 1700
64180009 tihoson E Nov. 3, 2019, 11:31 p.m. OK Mono C# TESTS 51 795 38092800 1700
64750146 NEvOl E Nov. 12, 2019, 2:56 p.m. OK Mono C# TESTS 51 1356 39731200 1700
63648597 vjudge4 E Oct. 28, 2019, 10:39 a.m. OK MS C++ TESTS 51 109 3993600 1700
63928147 vjudge5 E Oct. 31, 2019, 1:35 p.m. OK MS C++ TESTS 51 109 4812800 1700
66440264 vjudge2 E Dec. 7, 2019, 7:42 a.m. OK MS C++ TESTS 51 109 4812800 1700
63921229 vjudge5 E Oct. 31, 2019, 11:46 a.m. OK MS C++ TESTS 51 109 10547200 1700
63917736 vjudge5 E Oct. 31, 2019, 10:40 a.m. OK MS C++ TESTS 51 124 3174400 1700
63656545 vjudge4 E Oct. 28, 2019, 12:52 p.m. OK MS C++ TESTS 51 124 3174400 1700
63926182 vjudge3 E Oct. 31, 2019, 1:04 p.m. OK MS C++ TESTS 51 124 3174400 1700
63928233 vjudge5 E Oct. 31, 2019, 1:36 p.m. OK MS C++ TESTS 51 124 3174400 1700
64058068 vjudge3 E Nov. 2, 2019, 2:27 a.m. OK MS C++ TESTS 51 124 3174400 1700
66442997 vjudge5 E Dec. 7, 2019, 8:35 a.m. OK MS C++ TESTS 51 124 19251200 1700
63233689 2018030401093 E Oct. 23, 2019, 11:43 a.m. OK MS C++ 2017 TESTS 51 156 3174400 1700
66016758 vjudge1 E Nov. 30, 2019, 5:47 a.m. OK MS C++ 2017 TESTS 51 156 3174400 1700
63920493 Traveller_ E Oct. 31, 2019, 11:34 a.m. OK MS C++ 2017 TESTS 51 156 3174400 1700
63917698 RONGER E Oct. 31, 2019, 10:39 a.m. OK MS C++ 2017 TESTS 51 156 3174400 1700
63234719 pmitkov E Oct. 23, 2019, 11:59 a.m. OK MS C++ 2017 TESTS 51 156 3174400 1700
63693843 vjudge1 E Oct. 29, 2019, 4:25 a.m. OK MS C++ 2017 TESTS 51 156 3379200 1700
63920559 vjudge2 E Oct. 31, 2019, 11:35 a.m. OK MS C++ 2017 TESTS 51 171 3174400 1700
66432160 vjudge5 E Dec. 7, 2019, 3:49 a.m. OK MS C++ 2017 TESTS 51 171 3174400 1700
63727874 vjudge4 E Oct. 29, 2019, 1:11 p.m. OK MS C++ 2017 TESTS 51 171 4812800 1700
63233723 vjudge2 E Oct. 23, 2019, 11:44 a.m. OK MS C++ 2017 TESTS 51 171 6451200 1700
65210195 injust E Nov. 16, 2019, 5:47 p.m. OK PyPy 2 TESTS 51 233 15872000 1700
66297122 yumtam E Dec. 5, 2019, 5:07 a.m. OK PyPy 2 TESTS 51 327 22630400 1700
63225581 iamprayush E Oct. 23, 2019, 9:12 a.m. OK PyPy 2 TESTS 51 421 28569600 1700
68226211 mr.inconsitent E Jan. 5, 2020, 7:15 a.m. OK PyPy 2 TESTS 51 1201 34508800 1700
68226187 mr.inconsitent E Jan. 5, 2020, 7:14 a.m. OK PyPy 2 TESTS 51 1216 34508800 1700
63294879 r57shell E Oct. 24, 2019, 12:43 p.m. OK PyPy 3 TESTS 51 452 22220800 1700
64626793 titanlolcat E Nov. 10, 2019, 8:47 a.m. OK PyPy 3 TESTS 51 467 19456000 1700
68227776 Mr.Inconsistent E Jan. 5, 2020, 7:54 a.m. OK PyPy 3 TESTS 51 467 61542400 1700
68226158 mr.inconsitent E Jan. 5, 2020, 7:14 a.m. OK PyPy 3 TESTS 51 467 62259200 1700
64662530 shishir_roy E Nov. 10, 2019, 10:08 p.m. OK PyPy 3 TESTS 51 468 21811200 1700
68949452 bit_2 E Jan. 16, 2020, 5:24 p.m. OK PyPy 3 TESTS 51 482 22016000 1700
64319083 boycute E Nov. 5, 2019, 3:02 p.m. OK PyPy 3 TESTS 51 483 31846400 1700
68226321 mr.inconsitent E Jan. 5, 2020, 7:17 a.m. OK PyPy 3 TESTS 51 483 62361600 1700
63696078 deepakpadamata E Oct. 29, 2019, 5:30 a.m. OK PyPy 3 TESTS 51 498 19660800 1700
68949236 bit_2 E Jan. 16, 2020, 5:20 p.m. OK PyPy 3 TESTS 51 498 21196800 1700
63232690 MVP E Oct. 23, 2019, 11:27 a.m. OK Python 2 TESTS 51 686 34508800 1700
68128689 soumyasarkar1998 E Jan. 3, 2020, 4:12 p.m. OK Python 2 TESTS 51 702 26009600 1700
63928074 SoSooding E Oct. 31, 2019, 1:34 p.m. OK Python 2 TESTS 51 717 15667200 1700
68226396 mr.inconsitent E Jan. 5, 2020, 7:19 a.m. OK Python 2 TESTS 51 764 24678400 1700
68226355 mr.inconsitent E Jan. 5, 2020, 7:18 a.m. OK Python 2 TESTS 51 826 24780800 1700
64114166 Gaurav1 E Nov. 2, 2019, 7:56 p.m. OK Python 3 TESTS 51 623 19660800 1700
64275823 knight-erraunt E Nov. 4, 2019, 9:20 p.m. OK Python 3 TESTS 51 685 37478400 1700
63961039 coyorkdow E Nov. 1, 2019, 5:09 a.m. OK Python 3 TESTS 51 717 15974400 1700
63530345 victarry E Oct. 27, 2019, 6:32 a.m. OK Python 3 TESTS 51 717 32051200 1700
63676157 Wannagrow E Oct. 28, 2019, 6:26 p.m. OK Python 3 TESTS 51 717 37273600 1700
68382446 mantoun E Jan. 8, 2020, 2:50 a.m. OK Python 3 TESTS 51 779 15360000 1700
63212718 KanhuKeNanu E Oct. 23, 2019, 4:45 a.m. OK Python 3 TESTS 51 779 15872000 1700
63297582 ryo_n E Oct. 24, 2019, 1:23 p.m. OK Python 3 TESTS 51 810 15564800 1700
63288013 hubata01 E Oct. 24, 2019, 10:57 a.m. OK Python 3 TESTS 51 826 38604800 1700
63544631 NewGame E Oct. 27, 2019, 10:13 a.m. OK Python 3 TESTS 51 841 16998400 1700
63238144 BetBit E Oct. 23, 2019, 12:48 p.m. OK Rust TESTS 51 77 3686400 1700
63237719 BetBit E Oct. 23, 2019, 12:42 p.m. OK Rust TESTS 51 78 3686400 1700
63237414 BetBit E Oct. 23, 2019, 12:38 p.m. OK Rust TESTS 51 93 3686400 1700
63235128 BetBit E Oct. 23, 2019, 12:05 p.m. OK Rust TESTS 51 108 4812800 1700
63235680 BetBit E Oct. 23, 2019, 12:13 p.m. OK Rust TESTS 51 109 3686400 1700
63498534 43flyingcar E Oct. 26, 2019, 4:23 p.m. OK Rust TESTS 51 171 3686400 1700
63212050 akiradeveloper E Oct. 23, 2019, 4:27 a.m. OK Rust TESTS 51 202 37888000 1700
63498574 43flyingcar E Oct. 26, 2019, 4:24 p.m. OK Rust TESTS 51 1918 3686400 1700

remove filters

Back to search problems