Educational Codeforces Round 71 (Rated for Div. 2)

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
1207 Educational Codeforces Round 71 (Rated for Div. 2) FINISHED False 7200 165338699 Aug. 22, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9887 ) C Gas Pipeline PROGRAMMING dp greedy 1500

B"You are responsible for installing a gas pipeline along a road. Let's consider the road (for simplicity) as a segment [0, n] on OX axis. The road can have several crossroads, but for simplicity, we'll denote each crossroad as an interval (x, x + 1) with integer x . So we can represent the road as a binary string consisting of n characters, where character 0 means that current interval doesn't contain a crossroad, and 1 means that there is a crossroad. Usually, we can install the pipeline along the road on height of 1 unit with supporting pillars in each integer point (so, if we are responsible for [0, n] road, we must install n + 1 pillars). But on crossroads we should lift the pipeline up to the height 2 , so the pipeline won't obstruct the way for cars. We can do so inserting several zig-zag-like lines. Each zig-zag can be represented as a segment [x, x + 1] with integer x consisting of three parts: 0.5 units of horizontal pipe + 1 unit of vertical pipe + 0.5 of horizontal. Note that if pipeline is currently on height 2 , the pillars that support it should also have length equal to 2 units. Each unit of gas pipeline costs us a bourles, and each unit of pillar -- b bourles. So, it's not always optimal to make the whole pipeline on the height 2 . Find the shape of the pipeline with minimum possible cost and calculate that cost. Note that you must start and finish the pipeline on height 1 and, also, it's guaranteed that the first and last characters of the input string are equal to 0. The fist line contains one integer T ( 1 <= T <= 100 ) -- the number of queries. Next 2 cdot T lines contain independent queries -- one query per two lines. The first line contains three integers n , a , b ( 2 <= n <= 2 cdot 10^5 , 1 <= a <= 10^8 , 1 <= b <= 10^8 ) -- the length of the road, the cost of "...

Tutorials

Educational Codeforces Round 71 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68871824 vjudge4 C Jan. 15, 2020, 3:29 p.m. OK Clang++17 Diagnostics TESTS 19 78 3788800 1500
59943080 uenoku C Sept. 3, 2019, 12:07 p.m. OK Clang++17 Diagnostics TESTS 19 156 18841600 1500
60305224 hengxin11111jy C Sept. 9, 2019, 1:37 p.m. OK FPC TESTS 19 31 1331200 1500
59326347 rainboy C Aug. 22, 2019, 8:53 p.m. OK GNU C11 TESTS 18 31 204800 1500
60053508 BugLeave C Sept. 5, 2019, 2:26 a.m. OK GNU C11 TESTS 19 31 204800 1500
68289058 kaiboy C Jan. 5, 2020, 7:58 p.m. OK GNU C11 TESTS 19 31 204800 1500
60958769 nikhilreddy123 C Sept. 21, 2019, 4:21 a.m. OK GNU C11 TESTS 19 46 0 1500
59578502 alexismed C Aug. 27, 2019, 3:02 p.m. OK GNU C11 TESTS 19 46 0 1500
59351273 cutie3.14 C Aug. 23, 2019, 11:53 a.m. OK GNU C++11 TESTS 18 15 512000 1500
59850936 Vectory C Sept. 1, 2019, 11:30 a.m. OK GNU C++11 TESTS 19 15 1024000 1500
65737246 SuperDY C Nov. 26, 2019, 8:26 a.m. OK GNU C++11 TESTS 19 15 2355200 1500
69837070 Chirography_11 C Jan. 30, 2020, 12:07 p.m. OK GNU C++11 TESTS 19 15 3379200 1500
59706290 cmwqf C Aug. 30, 2019, 12:48 p.m. OK GNU C++11 TESTS 19 15 5017600 1500
59599769 ACMWGR C Aug. 28, 2019, 5:09 a.m. OK GNU C++11 TESTS 19 30 204800 1500
59352045 wangXP C Aug. 23, 2019, 12:11 p.m. OK GNU C++11 TESTS 18 30 204800 1500
59334448 VanVic C Aug. 23, 2019, 3:39 a.m. OK GNU C++11 TESTS 18 30 204800 1500
59441153 LittleFall C Aug. 25, 2019, 11:16 a.m. OK GNU C++11 TESTS 19 30 307200 1500
59406610 IIUCAKASH C Aug. 24, 2019, 2:09 p.m. OK GNU C++11 TESTS 19 30 512000 1500
61540204 xsjlmzs C Sept. 30, 2019, 8:27 a.m. OK GNU C++14 TESTS 19 15 204800 1500
59353084 hfc123 C Aug. 23, 2019, 12:32 p.m. OK GNU C++14 TESTS 18 15 204800 1500
59329669 JoaquinManuel C Aug. 22, 2019, 11:43 p.m. OK GNU C++14 TESTS 18 15 307200 1500
59380246 ParkJH C Aug. 24, 2019, 2:27 a.m. OK GNU C++14 TESTS 19 15 512000 1500
59369875 ayush_a97 C Aug. 23, 2019, 6:38 p.m. OK GNU C++14 TESTS 19 15 512000 1500
68658137 KasugaAyumu C Jan. 12, 2020, 12:50 p.m. OK GNU C++14 TESTS 19 15 512000 1500
60731984 0wner C Sept. 17, 2019, 4:02 p.m. OK GNU C++14 TESTS 19 15 512000 1500
59636503 pacha2880 C Aug. 28, 2019, 9:03 p.m. OK GNU C++14 TESTS 19 15 512000 1500
59575061 amphilyon C Aug. 27, 2019, 1:52 p.m. OK GNU C++14 TESTS 19 15 512000 1500
59381992 hiJimmy C Aug. 24, 2019, 3:54 a.m. OK GNU C++14 TESTS 19 15 512000 1500
59324057 Aleks5d C Aug. 22, 2019, 7:37 p.m. OK GNU C++17 TESTS 18 15 0 1500
59648625 arshiamoeini C Aug. 29, 2019, 7:08 a.m. OK GNU C++17 TESTS 19 15 0 1500
59411533 __ADS__ C Aug. 24, 2019, 4:04 p.m. OK GNU C++17 TESTS 19 15 204800 1500
62427379 abdulrahman_aj C Oct. 12, 2019, 2:41 p.m. OK GNU C++17 TESTS 19 15 204800 1500
61886602 vjudge4 C Oct. 5, 2019, 3:50 a.m. OK GNU C++17 TESTS 19 15 204800 1500
61883601 vjudge4 C Oct. 5, 2019, 2:02 a.m. OK GNU C++17 TESTS 19 15 204800 1500
59332406 zhuomu C Aug. 23, 2019, 2:10 a.m. OK GNU C++17 TESTS 18 15 307200 1500
59320959 Halo_Scar C Aug. 22, 2019, 6:19 p.m. OK GNU C++17 TESTS 18 15 409600 1500
68667635 Manvendra256 C Jan. 12, 2020, 3:41 p.m. OK GNU C++17 TESTS 19 15 512000 1500
60425300 sharvin2187 C Sept. 12, 2019, 7:45 a.m. OK GNU C++17 TESTS 19 15 512000 1500
59574069 reanimatorzon C Aug. 27, 2019, 1:33 p.m. OK Go TESTS 19 31 5017600 1500
59314709 Lisanaaa C Aug. 22, 2019, 4:42 p.m. OK Go TESTS 18 46 4505600 1500
65725361 elkadymohammed01 C Nov. 25, 2019, 10:17 p.m. OK Java 11 TESTS 19 186 0 1500
60288348 uwi C Sept. 9, 2019, 5 a.m. OK Java 8 TESTS 19 109 0 1500
59604038 Abdul01 C Aug. 28, 2019, 7:51 a.m. OK Java 8 TESTS 19 109 0 1500
59369437 TheSawan C Aug. 23, 2019, 6:28 p.m. OK Java 8 TESTS 19 109 0 1500
59336207 abhineshprajapati2 C Aug. 23, 2019, 4:56 a.m. OK Java 8 TESTS 18 109 0 1500
59322262 unicorn20141 C Aug. 22, 2019, 6:49 p.m. OK Java 8 TESTS 18 109 0 1500
63979667 Warbler C Nov. 1, 2019, 9:48 a.m. OK Java 8 TESTS 19 109 0 1500
60425799 hadiLotfy C Sept. 12, 2019, 7:54 a.m. OK Java 8 TESTS 19 109 0 1500
61769561 Kaiser-san C Oct. 3, 2019, 9:43 a.m. OK Java 8 TESTS 19 124 0 1500
67847988 pushpraj17307 C Dec. 28, 2019, 11:22 p.m. OK Java 8 TESTS 19 124 0 1500
64503917 rr459595 C Nov. 8, 2019, 5:54 a.m. OK Java 8 TESTS 19 124 0 1500
59335208 Spheniscine C Aug. 23, 2019, 4:13 a.m. OK Kotlin TESTS 18 156 102400 1500
59816580 amirrr C Aug. 31, 2019, 3:34 p.m. OK Kotlin TESTS 19 170 102400 1500
59628711 yakamoto C Aug. 28, 2019, 5:07 p.m. OK Kotlin TESTS 19 171 204800 1500
59322277 david_varela C Aug. 22, 2019, 6:49 p.m. OK Kotlin TESTS 18 171 204800 1500
59622278 Benq C Aug. 28, 2019, 2:36 p.m. OK Kotlin TESTS 19 187 7372800 1500
60144073 abbi_18 C Sept. 5, 2019, 10:09 p.m. OK Kotlin TESTS 19 249 18841600 1500
59405350 sid0adams C Aug. 24, 2019, 1:42 p.m. OK Mono C# TESTS 19 61 921600 1500
59365317 og.kostya C Aug. 23, 2019, 4:55 p.m. OK Mono C# TESTS 19 62 819200 1500
59418976 Roka C Aug. 24, 2019, 7:48 p.m. OK Mono C# TESTS 19 62 7577600 1500
59939535 tomasz.masternak C Sept. 3, 2019, 10:54 a.m. OK Mono C# TESTS 19 62 7577600 1500
59347394 Lumin C Aug. 23, 2019, 10:19 a.m. OK Mono C# TESTS 18 93 3788800 1500
62619334 vjudge1 C Oct. 15, 2019, 12:23 p.m. OK MS C++ TESTS 19 30 1638400 1500
60394855 scorpiowf C Sept. 11, 2019, 2:33 p.m. OK MS C++ TESTS 19 31 204800 1500
69031609 vjudge3 C Jan. 18, 2020, 8:14 a.m. OK MS C++ TESTS 19 31 409600 1500
59560646 LeiruiCN C Aug. 27, 2019, 8:21 a.m. OK MS C++ TESTS 19 31 512000 1500
59363721 tbhg C Aug. 23, 2019, 4:20 p.m. OK MS C++ TESTS 19 31 512000 1500
60955703 vjudge4 C Sept. 21, 2019, 2:26 a.m. OK MS C++ TESTS 19 31 614400 1500
62619243 vjudge5 C Oct. 15, 2019, 12:22 p.m. OK MS C++ TESTS 19 31 1638400 1500
59331014 vjudge2 C Aug. 23, 2019, 1:02 a.m. OK MS C++ TESTS 18 31 3379200 1500
62918879 vjudge2 C Oct. 19, 2019, 9:26 a.m. OK MS C++ TESTS 19 31 5017600 1500
59549340 vjudge4 C Aug. 27, 2019, 1:35 a.m. OK MS C++ TESTS 19 31 8601600 1500
59341627 cursed C Aug. 23, 2019, 7:48 a.m. OK MS C++ 2017 TESTS 18 31 204800 1500
59501635 guoriyue C Aug. 26, 2019, 3:13 a.m. OK MS C++ 2017 TESTS 19 31 204800 1500
60023436 vjudge1 C Sept. 4, 2019, 1:37 p.m. OK MS C++ 2017 TESTS 19 31 307200 1500
61351625 YellowFlashka C Sept. 27, 2019, 8:30 a.m. OK MS C++ 2017 TESTS 19 31 614400 1500
59320671 CrashMaster C Aug. 22, 2019, 6:13 p.m. OK MS C++ 2017 TESTS 18 31 614400 1500
59587619 Kirito.LVL99 C Aug. 27, 2019, 6:43 p.m. OK MS C++ 2017 TESTS 19 31 614400 1500
59318807 ICEY777 C Aug. 22, 2019, 5:35 p.m. OK MS C++ 2017 TESTS 18 31 1843200 1500
59524415 pmitkov C Aug. 26, 2019, 12:57 p.m. OK MS C++ 2017 TESTS 19 31 1843200 1500
61008323 creeper_ustc C Sept. 21, 2019, 11:40 a.m. OK MS C++ 2017 TESTS 19 31 1843200 1500
64672533 yuanyuan2048 C Nov. 11, 2019, 6:38 a.m. OK MS C++ 2017 TESTS 19 31 3379200 1500
60382024 mayxiaoyu C Sept. 11, 2019, 9:38 a.m. OK Node.js TESTS 19 202 6348800 1500
60381133 mayxiaoyu C Sept. 11, 2019, 9:13 a.m. OK Node.js TESTS 19 218 6348800 1500
60381954 mayxiaoyu C Sept. 11, 2019, 9:36 a.m. OK Node.js TESTS 19 233 6348800 1500
61112291 mayakin C Sept. 23, 2019, 11:43 a.m. OK PHP TESTS 19 124 0 1500
59485352 yumtam C Aug. 25, 2019, 5:20 p.m. OK PyPy 2 TESTS 19 327 35328000 1500
59636088 Michal628496 C Aug. 28, 2019, 8:48 p.m. OK PyPy 3 TESTS 19 155 2560000 1500
59324818 PS41 C Aug. 22, 2019, 8 p.m. OK PyPy 3 TESTS 18 155 2867200 1500
59326090 koptev C Aug. 22, 2019, 8:43 p.m. OK PyPy 3 TESTS 18 156 2764800 1500
59374203 kchau C Aug. 23, 2019, 8:40 p.m. OK PyPy 3 TESTS 19 170 3174400 1500
59421919 naishrim C Aug. 24, 2019, 9:46 p.m. OK PyPy 3 TESTS 19 170 3379200 1500
59317837 StinsonOvO C Aug. 22, 2019, 5:19 p.m. OK PyPy 3 TESTS 18 171 3276800 1500
59399342 25ghost C Aug. 24, 2019, 11:32 a.m. OK PyPy 3 TESTS 19 171 8601600 1500
64869139 fdan1c C Nov. 14, 2019, 7:31 a.m. OK PyPy 3 TESTS 19 186 3891200 1500
66188676 Aloha C Dec. 2, 2019, 3:32 p.m. OK PyPy 3 TESTS 19 186 12083200 1500
59323572 shanu_im C Aug. 22, 2019, 7:23 p.m. OK PyPy 3 TESTS 18 187 5427200 1500
60377628 Newbie_Ghost_ C Sept. 11, 2019, 7:25 a.m. OK Python 2 TESTS 19 499 14950400 1500
67295828 soumyasarkar1998 C Dec. 20, 2019, 4:55 p.m. OK Python 2 TESTS 19 577 26112000 1500
59317102 reuven C Aug. 22, 2019, 5:08 p.m. OK Python 3 TESTS 18 170 409600 1500
59372221 Parag_AP C Aug. 23, 2019, 7:37 p.m. OK Python 3 TESTS 19 202 409600 1500
59322464 Stephan_Sok C Aug. 22, 2019, 6:54 p.m. OK Python 3 TESTS 18 217 409600 1500
59316759 nmg322 C Aug. 22, 2019, 5:03 p.m. OK Python 3 TESTS 18 217 409600 1500
59349538 invictus_123 C Aug. 23, 2019, 11:13 a.m. OK Python 3 TESTS 18 218 409600 1500
59806763 aayushtiwari7890 C Aug. 31, 2019, 12:11 p.m. OK Python 3 TESTS 19 218 921600 1500
59675603 vileoy C Aug. 29, 2019, 5:59 p.m. OK Python 3 TESTS 19 218 1945600 1500
65822616 Annvv C Nov. 27, 2019, 11:14 a.m. OK Python 3 TESTS 19 233 614400 1500
59315046 SinKing C Aug. 22, 2019, 4:45 p.m. OK Python 3 TESTS 18 248 409600 1500
59316451 proofbyconstruction C Aug. 22, 2019, 5 p.m. OK Python 3 TESTS 18 249 2764800 1500
59376238 ValenKof C Aug. 23, 2019, 10:08 p.m. OK Rust TESTS 19 15 819200 1500
60640819 bor.is C Sept. 15, 2019, 3:21 p.m. OK Rust TESTS 19 30 3993600 1500
59403539 onetwogoo C Aug. 24, 2019, 1:02 p.m. OK Rust TESTS 19 31 4915200 1500
60642677 bor.is C Sept. 15, 2019, 3:58 p.m. OK Rust TESTS 19 31 7168000 1500
60013453 gu_castle C Sept. 4, 2019, 11:22 a.m. OK Rust TESTS 19 31 7168000 1500
59317931 sansen C Aug. 22, 2019, 5:20 p.m. OK Rust TESTS 18 46 4505600 1500

remove filters

Back to search problems