Educational Codeforces Round 45 (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
990 Educational Codeforces Round 45 (Rated for Div. 2) FINISHED False 7200 208554863 June 10, 2018, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2049 ) E Post Lamps PROGRAMMING brute force greedy 2000

B"Adilbek's house is located on a street which can be represented as the OX axis. This street is really dark, so Adilbek wants to install some post lamps to illuminate it. Street has n positions to install lamps, they correspond to the integer numbers from 0 to n - 1 on the OX axis. However, some positions are blocked and no post lamp can be placed there. There are post lamps of different types which differ only by their power. When placed in position x , post lamp of power l illuminates the segment [x; x + l] . The power of each post lamp is always a positive integer number. The post lamp shop provides an infinite amount of lamps of each type from power 1 to power k . Though each customer is only allowed to order post lamps of exactly one type. Post lamps of power l cost a_l each. What is the minimal total cost of the post lamps of exactly one type Adilbek can buy to illuminate the entire segment [0; n] of the street? If some lamps illuminate any other segment of the street, Adilbek does not care, so, for example, he may place a lamp of power 3 in position n - 1 (even though its illumination zone doesn't completely belong to segment [0; n] ). The first line contains three integer numbers n , m and k ( 1 <= k <= n <= 10^6 , 0 <= m <= n ) -- the length of the segment of the street Adilbek wants to illuminate, the number of the blocked positions and the maximum power of the post lamp available. The second line contains m integer numbers s_1, s_2, ... , s_m ( 0 <= s_1 < s_2 < ... s_m < n ) -- the blocked positions. The third line contains k integer numbers a_1, a_2, ... , a_k ( 1 <= a_i <= 10^6 ) -- the costs of the post lamps. Print the minimal total cost of the post lamps of exactly one type Adilbek can buy to illuminate the entire segment [0; n] of the street. If illumintaing the entire segment [0; "...

Tutorials

Educational Codeforces Round 45 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
41151652 vjudge2 E Aug. 3, 2018, 9:13 a.m. OK Clang++17 Diagnostics TESTS 46 935 9011200 2000
41151579 YakumoRan E Aug. 3, 2018, 9:10 a.m. OK Clang++17 Diagnostics TESTS 46 1044 9011200 2000
39224265 vjudge1 E June 13, 2018, 6:30 p.m. OK GNU C TESTS 46 390 11980800 2000
39796349 vjudge5 E June 30, 2018, 11:41 a.m. OK GNU C++ TESTS 46 186 9011200 2000
39110158 SimulatedAnnealing E June 10, 2018, 11:27 a.m. OK GNU C++ TESTS 46 186 16076800 2000
39214441 lornd E June 13, 2018, 11:20 a.m. OK GNU C++ TESTS 46 187 9011200 2000
39406030 vjudge1 E June 19, 2018, 9:54 a.m. OK GNU C++ TESTS 46 202 9011200 2000
39406005 lijiamu E June 19, 2018, 9:53 a.m. OK GNU C++ TESTS 46 218 9011200 2000
39117180 1152147486 E June 10, 2018, 12:01 p.m. OK GNU C++ TESTS 46 218 24064000 2000
40105802 vjudge3 E July 9, 2018, 8:27 a.m. OK GNU C++ TESTS 46 233 13312000 2000
39109010 SimulatedAnnealing E June 10, 2018, 11:22 a.m. OK GNU C++ TESTS 46 233 16076800 2000
40599777 vjudge2 E July 21, 2018, 7:52 a.m. OK GNU C++ TESTS 46 233 16896000 2000
39112659 Immortal.S E June 10, 2018, 11:40 a.m. OK GNU C++ TESTS 46 234 24064000 2000
39171236 pandrei E June 11, 2018, 5:46 p.m. OK GNU C11 TESTS 46 405 7987200 2000
51548405 rainboy E March 19, 2019, 9:42 p.m. OK GNU C11 TESTS 46 436 11980800 2000
69935308 yuzhechuan E Feb. 1, 2020, 3:22 a.m. OK GNU C++11 TESTS 46 155 9011200 2000
48485040 _CZH E Jan. 17, 2019, 7:59 a.m. OK GNU C++11 TESTS 46 155 13209600 2000
39146801 river11355 E June 11, 2018, 12:47 p.m. OK GNU C++11 TESTS 46 156 13004800 2000
40115208 vjudge3 E July 9, 2018, 2:11 p.m. OK GNU C++11 TESTS 46 171 9011200 2000
39124527 vjudge1 E June 10, 2018, 2:51 p.m. OK GNU C++11 TESTS 46 171 18022400 2000
39178083 annihilation666 E June 12, 2018, 1:58 a.m. OK GNU C++11 TESTS 46 186 9011200 2000
58136136 vjudge4 E Aug. 1, 2019, 4:10 p.m. OK GNU C++11 TESTS 46 202 11980800 2000
39134323 awimrain E June 11, 2018, 1:27 a.m. OK GNU C++11 TESTS 46 202 24064000 2000
39210524 Charles_Han E June 13, 2018, 8:40 a.m. OK GNU C++11 TESTS 46 218 12083200 2000
58129881 vjudge4 E Aug. 1, 2019, 1:52 p.m. OK GNU C++11 TESTS 46 218 16998400 2000
46011752 wleung_bvg E Nov. 20, 2018, 9:03 p.m. OK GNU C++14 TESTS 46 171 3993600 2000
39439015 Mr_Emrul E June 20, 2018, 2:48 p.m. OK GNU C++14 TESTS 46 171 9011200 2000
39122077 txingml E June 10, 2018, 1:23 p.m. OK GNU C++14 TESTS 46 202 8089600 2000
39114594 Linkus E June 10, 2018, 11:49 a.m. OK GNU C++14 TESTS 46 234 7987200 2000
39113606 fanache99 E June 10, 2018, 11:44 a.m. OK GNU C++14 TESTS 46 280 5017600 2000
39198709 jarakcyc E June 12, 2018, 6:12 p.m. OK GNU C++14 TESTS 46 420 5017600 2000
39116216 nong E June 10, 2018, 11:57 a.m. OK GNU C++14 TESTS 46 436 16179200 2000
39135001 nong E June 11, 2018, 2:51 a.m. OK GNU C++14 TESTS 46 436 16179200 2000
45419998 trunghieuronaldo E Nov. 7, 2018, 4:39 p.m. OK GNU C++14 TESTS 46 452 9011200 2000
53476907 DeeaX99 E April 28, 2019, 4:12 p.m. OK GNU C++14 TESTS 46 452 12083200 2000
40931964 ReaLNero1 E July 30, 2018, 1:28 a.m. OK GNU C++17 TESTS 46 93 24064000 2000
40644932 Trisolaris E July 22, 2018, 3:15 p.m. OK GNU C++17 TESTS 46 93 24064000 2000
40977240 ReaLNero1 E July 30, 2018, 4:06 p.m. OK GNU C++17 TESTS 46 108 24064000 2000
39125341 OO_I_LOVE_YZQ__OO E June 10, 2018, 3:28 p.m. OK GNU C++17 TESTS 46 202 8192000 2000
39146370 Atlantic E June 11, 2018, 12:31 p.m. OK GNU C++17 TESTS 46 217 10035200 2000
39113752 adoubiq E June 10, 2018, 11:45 a.m. OK GNU C++17 TESTS 46 218 16076800 2000
46230621 andrew4936 E Nov. 25, 2018, 8:34 p.m. OK GNU C++17 TESTS 46 343 12083200 2000
39132129 vanvector E June 10, 2018, 9:18 p.m. OK GNU C++17 TESTS 46 451 24064000 2000
54519469 yangzijun E May 23, 2019, 11:39 a.m. OK GNU C++17 TESTS 46 467 24064000 2000
53808047 lys1280023 E May 6, 2019, 3:32 a.m. OK GNU C++17 TESTS 46 468 7987200 2000
68055726 TheSawan E Jan. 1, 2020, 10:24 p.m. OK Java 11 TESTS 46 576 45875200 2000
46840168 megaspazz E Dec. 10, 2018, 6:56 a.m. OK Java 8 TESTS 46 264 4198400 2000
60368038 StayAwayFromBitches E Sept. 10, 2019, 10:42 p.m. OK Java 8 TESTS 46 296 4505600 2000
39867110 yatin E July 2, 2018, 11:59 a.m. OK Java 8 TESTS 46 327 3993600 2000
39174938 rds__98 E June 11, 2018, 8:54 p.m. OK Java 8 TESTS 46 343 14233600 2000
39599356 aya_cool E June 24, 2018, 10:50 a.m. OK Java 8 TESTS 46 343 17408000 2000
39137141 sooraj10 E June 11, 2018, 5:24 a.m. OK Java 8 TESTS 46 358 2252800 2000
40578911 vovacomua E July 20, 2018, 1:01 p.m. OK Java 8 TESTS 46 358 4198400 2000
39585375 Ahmad E June 24, 2018, 12:41 a.m. OK Java 8 TESTS 46 358 5222400 2000
39116268 sev_snape E June 10, 2018, 11:57 a.m. OK Java 8 TESTS 46 358 6144000 2000
39205394 xodiac E June 13, 2018, 3:38 a.m. OK Java 8 TESTS 46 373 14233600 2000
39190146 elizarov E June 12, 2018, 11:44 a.m. OK Kotlin TESTS 46 1497 45158400 2000
39117549 juliya1711 E June 10, 2018, 12:03 p.m. OK Mono C# TESTS 46 187 7987200 2000
39181000 Kirundel E June 12, 2018, 5:23 a.m. OK Mono C# TESTS 46 841 169881600 2000
39180924 Kirundel E June 12, 2018, 5:18 a.m. OK Mono C# TESTS 46 998 170188800 2000
39180895 Kirundel E June 12, 2018, 5:16 a.m. OK Mono C# TESTS 46 1903 170905600 2000
39111950 lxn E June 10, 2018, 11:36 a.m. OK MS C++ TESTS 46 156 4198400 2000
62256942 vjudge2 E Oct. 10, 2019, 11:05 a.m. OK MS C++ TESTS 46 296 12083200 2000
62256850 HatsuneHan E Oct. 10, 2019, 11:03 a.m. OK MS C++ TESTS 46 311 12083200 2000
58176351 vjudge4 E Aug. 2, 2019, 1:13 p.m. OK MS C++ TESTS 46 312 13004800 2000
58164094 vjudge3 E Aug. 2, 2019, 8:26 a.m. OK MS C++ TESTS 46 327 5017600 2000
58235190 vjudge3 E Aug. 3, 2019, 7:04 p.m. OK MS C++ TESTS 46 327 12083200 2000
58209870 vjudge1 E Aug. 3, 2019, 8:27 a.m. OK MS C++ TESTS 46 327 13004800 2000
58132163 vjudge4 E Aug. 1, 2019, 2:41 p.m. OK MS C++ TESTS 46 327 13004800 2000
62966988 vjudge2 E Oct. 20, 2019, 5:12 a.m. OK MS C++ TESTS 46 327 16076800 2000
58149975 vjudge2 E Aug. 2, 2019, 1:54 a.m. OK MS C++ TESTS 46 342 5017600 2000
62497755 vjudge1 E Oct. 13, 2019, 10:53 a.m. OK MS C++ 2017 TESTS 46 545 13004800 2000
62359271 mirack E Oct. 11, 2019, 11:57 a.m. OK MS C++ 2017 TESTS 46 545 32051200 2000
62347555 CGD_sk8 E Oct. 11, 2019, 8:11 a.m. OK MS C++ 2017 TESTS 46 1450 3993600 2000
62262568 Jimmyokok E Oct. 10, 2019, 12:40 p.m. OK MS C++ 2017 TESTS 46 1450 7987200 2000
62361046 mirack E Oct. 11, 2019, 12:29 p.m. OK MS C++ 2017 TESTS 46 1465 32051200 2000
62361236 vjudge2 E Oct. 11, 2019, 12:32 p.m. OK MS C++ 2017 TESTS 46 1482 32051200 2000
62215109 vjudge4 E Oct. 9, 2019, 3:43 p.m. OK MS C++ 2017 TESTS 46 1512 12083200 2000
56758248 shijieshu E July 9, 2019, 2:46 p.m. OK MS C++ 2017 TESTS 46 1528 16998400 2000
39251094 dbhrockzz E June 14, 2018, 6:16 p.m. OK PyPy 2 TESTS 46 686 73216000 2000
39455509 wadissimo E June 21, 2018, 8:23 a.m. OK PyPy 3 TESTS 46 1575 135475200 2000
43525421 throwaway_account E Sept. 28, 2018, 11:02 a.m. OK PyPy 3 TESTS 46 1746 163328000 2000
39189773 ien49fh E June 12, 2018, 11:30 a.m. OK PyPy 3 TESTS 46 1871 100249600 2000
61068125 Kachumastick Andrey_R E Sept. 22, 2019, 11:46 a.m. OK PyPy 3 TESTS 46 1887 77926400 2000
39108656 sparkyyyy E June 10, 2018, 11:20 a.m. OK PyPy 3 TESTS 46 1887 120422400 2000
39109130 sparkyyyy E June 10, 2018, 11:23 a.m. OK PyPy 3 TESTS 46 1903 120320000 2000
39168357 Ali_Pi E June 11, 2018, 4:08 p.m. OK Python 3 TESTS 46 1778 65638400 2000

remove filters

Back to search problems