Educational Codeforces Round 20

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
803 Educational Codeforces Round 20 FINISHED False 8100 238431299 April 28, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3286 ) D Magazine Ad PROGRAMMING binary search greedy 1900

B"The main city magazine offers its readers an opportunity to publish their ads. The format of the ad should be like this: There are space-separated non-empty words of lowercase and uppercase Latin letters. There are hyphen characters '-' in some words, their positions set word wrapping points. Word can include more than one hyphen. It is guaranteed that there are no adjacent spaces and no adjacent hyphens. No hyphen is adjacent to space. There are no spaces and no hyphens before the first word and after the last word. When the word is wrapped, the part of the word before hyphen and the hyphen itself stay on current line and the next part of the word is put on the next line. You can also put line break between two words, in that case the space stays on current line. Check notes for better understanding. The ad can occupy no more that k lines and should have minimal width. The width of the ad is the maximal length of string (letters, spaces and hyphens are counted) in it. You should write a program that will find minimal width of the ad. The first line contains number k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains the text of the ad -- non-empty space-separated words of lowercase and uppercase Latin letters and hyphens. Total length of the ad don't exceed 106 characters. Output minimal width of the ad. Here all spaces are replaced with dots. In the first example one of possible results after all word wraps looks like this: The second example: "...

Tutorials

51768

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53438254 MetB D April 27, 2019, 8:47 p.m. OK Clang++17 Diagnostics TESTS 30 468 22220800 1900
26751565 willdeath D April 29, 2017, 3:25 p.m. OK FPC TESTS 30 15 8089600 1900
27907207 KagamiharaNadeshiko D June 19, 2017, 2:51 p.m. OK FPC TESTS 30 30 6451200 1900
26834553 vjudge2 D May 4, 2017, 12:42 p.m. OK FPC TESTS 30 30 8499200 1900
26728403 heklo D April 28, 2017, 4:20 p.m. OK FPC TESTS 30 31 14131200 1900
39146446 DPO_WS D June 11, 2018, 12:34 p.m. OK FPC TESTS 30 61 8499200 1900
26763126 minhkhoi1026 D April 30, 2017, 7:54 a.m. OK FPC TESTS 30 62 10035200 1900
39051264 minhkhoi1026 D June 8, 2018, 4:53 p.m. OK FPC TESTS 30 77 8499200 1900
26763077 minhkhoi1026 D April 30, 2017, 7:50 a.m. OK FPC TESTS 30 77 14131200 1900
26728514 luckystars D April 28, 2017, 4:22 p.m. OK FPC TESTS 30 124 24268800 1900
26780441 tabac D May 1, 2017, 6:58 a.m. OK GNU C TESTS 30 15 2867200 1900
26870797 jkxjkx1031 D May 5, 2017, 2:32 a.m. OK GNU C TESTS 30 30 5017600 1900
26729277 sgtlaugh D April 28, 2017, 4:34 p.m. OK GNU C TESTS 30 61 2867200 1900
26834353 vjudge1 D May 4, 2017, 12:34 p.m. OK GNU C++ TESTS 30 15 819200 1900
29707186 ThoseBygones D Aug. 23, 2017, 12:33 p.m. OK GNU C++ TESTS 30 15 1024000 1900
27556923 jolt D June 4, 2017, 6:32 a.m. OK GNU C++ TESTS 30 15 3174400 1900
26915478 pegasas D May 7, 2017, 4:04 a.m. OK GNU C++ TESTS 30 15 4198400 1900
26803980 pankajAhuja D May 2, 2017, 2:05 p.m. OK GNU C++ TESTS 30 15 4198400 1900
26899881 pegasas D May 6, 2017, 11:26 a.m. OK GNU C++ TESTS 30 15 4812800 1900
29545818 vjudge1 D Aug. 18, 2017, 7:45 a.m. OK GNU C++ TESTS 30 15 5017600 1900
29545572 vjudge2 D Aug. 18, 2017, 7:28 a.m. OK GNU C++ TESTS 30 15 5017600 1900
29545262 vjudge5 D Aug. 18, 2017, 7:10 a.m. OK GNU C++ TESTS 30 15 5017600 1900
27189337 noxe D May 18, 2017, 3 a.m. OK GNU C++ TESTS 30 15 5017600 1900
26731541 orz010orz D April 28, 2017, 5:14 p.m. OK GNU C11 TESTS 30 15 5939200 1900
26734693 Chapecoense D April 28, 2017, 8:10 p.m. OK GNU C11 TESTS 30 15 6860800 1900
26744144 f2lk6wf90d D April 29, 2017, 9:11 a.m. OK GNU C11 TESTS 30 30 6860800 1900
27009330 invinciblerm D May 11, 2017, 9:32 a.m. OK GNU C++11 TESTS 30 15 3379200 1900
27627176 yeates D June 7, 2017, 7:07 a.m. OK GNU C++11 TESTS 30 15 3993600 1900
26950693 PhanTrinh D May 8, 2017, 5:11 a.m. OK GNU C++11 TESTS 30 15 4096000 1900
28257332 Zvirbulis D July 3, 2017, 1:53 p.m. OK GNU C++11 TESTS 30 15 4096000 1900
28260325 Zvirbulis D July 3, 2017, 4:08 p.m. OK GNU C++11 TESTS 30 15 4096000 1900
26827185 2013300262 D May 4, 2017, 2:40 a.m. OK GNU C++11 TESTS 30 15 4198400 1900
26923756 Yash_ D May 7, 2017, 12:55 p.m. OK GNU C++11 TESTS 30 15 4710400 1900
28991978 Max.D. D July 30, 2017, 1:45 p.m. OK GNU C++11 TESTS 30 15 4915200 1900
27900074 zcyskyaa D June 19, 2017, 8:47 a.m. OK GNU C++11 TESTS 30 15 5017600 1900
27153783 52416 D May 16, 2017, 8:12 a.m. OK GNU C++11 TESTS 30 15 5017600 1900
26969073 CLT_S2_ZLT D May 9, 2017, 7:19 a.m. OK GNU C++14 TESTS 30 15 1024000 1900
26886072 Zz7 D May 5, 2017, 5:29 p.m. OK GNU C++14 TESTS 30 15 2969600 1900
26803180 DoveDragon D May 2, 2017, 1:22 p.m. OK GNU C++14 TESTS 30 15 3072000 1900
26835733 lesliewang90 D May 4, 2017, 1:35 p.m. OK GNU C++14 TESTS 30 15 4710400 1900
27008581 MadNick D May 11, 2017, 8:27 a.m. OK GNU C++14 TESTS 30 15 4710400 1900
26880776 rr_ D May 5, 2017, 12:49 p.m. OK GNU C++14 TESTS 30 15 4710400 1900
27105793 TheTerminalGuy D May 14, 2017, 11:39 a.m. OK GNU C++14 TESTS 30 15 4710400 1900
27006999 HeyByeSummerTime D May 11, 2017, 6:13 a.m. OK GNU C++14 TESTS 30 15 5017600 1900
27593223 destroyed D June 5, 2017, 4:18 p.m. OK GNU C++14 TESTS 30 15 5017600 1900
26863315 Hossam D May 4, 2017, 5:37 p.m. OK GNU C++14 TESTS 30 15 6144000 1900
57181888 1414502821 D July 17, 2019, 7:31 a.m. OK GNU C++17 TESTS 30 30 5017600 1900
65799536 vjudge1 D Nov. 27, 2019, 6:47 a.m. OK GNU C++17 TESTS 30 30 5017600 1900
57201285 zstu-mile D July 17, 2019, 1:49 p.m. OK GNU C++17 TESTS 30 30 5017600 1900
65799306 vjudge4 D Nov. 27, 2019, 6:42 a.m. OK GNU C++17 TESTS 30 31 1024000 1900
43000753 vjudge4 D Sept. 17, 2018, 1:46 p.m. OK GNU C++17 TESTS 30 31 1024000 1900
57979641 duzheting D July 30, 2019, 8:54 a.m. OK GNU C++17 TESTS 30 31 1433600 1900
64714283 KKT_89 D Nov. 11, 2019, 8:39 p.m. OK GNU C++17 TESTS 30 31 2048000 1900
50156907 aesth D Feb. 19, 2019, 10:37 a.m. OK GNU C++17 TESTS 30 31 2048000 1900
43742325 tourist314159 D Oct. 3, 2018, 6:29 p.m. OK GNU C++17 TESTS 30 31 2048000 1900
62413442 hkyiitd D Oct. 12, 2019, 10:58 a.m. OK GNU C++17 TESTS 30 31 2150400 1900
26770967 only_methol D April 30, 2017, 3:51 p.m. OK Go TESTS 30 62 31641600 1900
26729400 stczhc D April 28, 2017, 4:36 p.m. OK Haskell TESTS 30 218 97587200 1900
28309178 sl0th D July 5, 2017, 5:20 p.m. OK Haskell TESTS 30 280 62873600 1900
27278445 thainguyenhung D May 22, 2017, 6:58 a.m. OK Java 8 TESTS 30 124 0 1900
26892270 tyuan73 D May 6, 2017, 3:49 a.m. OK Java 8 TESTS 30 124 0 1900
26753750 yfo D April 29, 2017, 5:47 p.m. OK Java 8 TESTS 30 124 20582400 1900
52753938 aman28rwt D April 14, 2019, 3:39 p.m. OK Java 8 TESTS 30 139 0 1900
31431906 Ajudiya_13 D Oct. 16, 2017, 7:49 p.m. OK Java 8 TESTS 30 139 20684800 1900
58190848 Sasuke-u D Aug. 2, 2019, 7:31 p.m. OK Java 8 TESTS 30 155 0 1900
26798452 JialinOuyang D May 2, 2017, 8:09 a.m. OK Java 8 TESTS 30 155 20684800 1900
26728717 marcose18 D April 28, 2017, 4:25 p.m. OK Java 8 TESTS 30 155 21606400 1900
26780632 Omar_Morsi D May 1, 2017, 7:14 a.m. OK Java 8 TESTS 30 156 20582400 1900
26909259 Laboon D May 6, 2017, 7:26 p.m. OK Java 8 TESTS 30 171 0 1900
26733962 simonmysun D April 28, 2017, 7:14 p.m. OK JavaScript TESTS 30 108 37683200 1900
63784639 Eva D Oct. 30, 2019, 11:59 a.m. OK Kotlin TESTS 30 295 4403200 1900
26727378 og.kostya D April 28, 2017, 4:07 p.m. OK MS C# TESTS 30 78 14848000 1900
26745608 artsin666 D April 29, 2017, 10:38 a.m. OK MS C# TESTS 30 93 16998400 1900
26814181 fr0st D May 3, 2017, 7:09 a.m. OK MS C# TESTS 30 93 19353600 1900
26741541 Cuellius D April 29, 2017, 6:26 a.m. OK MS C# TESTS 30 124 31846400 1900
33243713 den.egorychev D Dec. 14, 2017, 3:11 p.m. OK MS C# TESTS 30 124 42598400 1900
26744368 lionvs13 D April 29, 2017, 9:25 a.m. OK MS C# TESTS 30 139 12800000 1900
33244193 zhenia1698 D Dec. 14, 2017, 3:28 p.m. OK MS C# TESTS 30 140 42496000 1900
28948894 vjudge5 D July 28, 2017, 9:08 a.m. OK MS C++ TESTS 30 30 7065600 1900
50621321 vjudge1 D March 1, 2019, 1:50 a.m. OK MS C++ TESTS 30 30 75161600 1900
29045265 vjudge5 D July 31, 2017, 10:30 a.m. OK MS C++ TESTS 30 31 3072000 1900
50567032 vjudge2 D Feb. 27, 2019, 1:35 p.m. OK MS C++ TESTS 30 31 5017600 1900
50555533 vjudge3 D Feb. 27, 2019, 7:44 a.m. OK MS C++ TESTS 30 31 5017600 1900
42861723 Brosea D Sept. 14, 2018, 1:16 p.m. OK MS C++ TESTS 30 31 5222400 1900
42861683 vjudge2 D Sept. 14, 2018, 1:14 p.m. OK MS C++ TESTS 30 31 5222400 1900
42860845 vjudge4 D Sept. 14, 2018, 12:47 p.m. OK MS C++ TESTS 30 31 5324800 1900
27304040 dzhaba D May 23, 2017, 3:13 p.m. OK MS C++ TESTS 30 31 5734400 1900
50626730 vjudge4 D March 1, 2019, 6:32 a.m. OK MS C++ TESTS 30 31 6041600 1900
50608560 945578930 D Feb. 28, 2019, 3:45 p.m. OK MS C++ 2017 TESTS 30 46 5017600 1900
65801289 vjudge3 D Nov. 27, 2019, 7:34 a.m. OK MS C++ 2017 TESTS 30 46 5939200 1900
65801211 vjudge2 D Nov. 27, 2019, 7:32 a.m. OK MS C++ 2017 TESTS 30 46 5939200 1900
50605726 loading.. D Feb. 28, 2019, 2:27 p.m. OK MS C++ 2017 TESTS 30 140 3993600 1900
57768444 pseuda D July 25, 2019, 10:21 p.m. OK MS C++ 2017 TESTS 30 202 28467200 1900
27111641 attiw D May 14, 2017, 7:10 p.m. OK PyPy 2 TESTS 30 124 7475200 1900
27113380 andreamaf D May 14, 2017, 10:38 p.m. OK PyPy 2 TESTS 30 171 29491200 1900
26729195 pkacprzak D April 28, 2017, 4:32 p.m. OK PyPy 2 TESTS 30 186 49766400 1900
26741785 har_vi D April 29, 2017, 6:43 a.m. OK PyPy 2 TESTS 30 187 29184000 1900
27607158 sragavan D June 6, 2017, 7:07 a.m. OK PyPy 2 TESTS 30 218 38707200 1900
40755518 aeternalis1 D July 25, 2018, 9:53 p.m. OK PyPy 2 TESTS 30 265 18534400 1900
51385933 vyomkesh D March 16, 2019, 6:46 p.m. OK PyPy 2 TESTS 30 280 17408000 1900
29813150 m7mdbadawy D Aug. 26, 2017, 6:52 p.m. OK PyPy 2 TESTS 30 421 26828800 1900
26729212 Wizmann D April 28, 2017, 4:33 p.m. OK PyPy 2 TESTS 30 451 61952000 1900
51599881 saku7 D March 21, 2019, 2:34 a.m. OK PyPy 3 TESTS 30 186 10752000 1900
27000361 MarcoXerox D May 10, 2017, 5:01 p.m. OK PyPy 3 TESTS 30 217 11161600 1900
65620461 shiv1470 D Nov. 24, 2019, 6:01 a.m. OK PyPy 3 TESTS 30 233 9830400 1900
35092515 knight-erraunt D Feb. 9, 2018, 2:03 p.m. OK PyPy 3 TESTS 30 234 49049600 1900
26731706 Naoki_M D April 28, 2017, 5:16 p.m. OK PyPy 3 TESTS 30 264 63488000 1900
26737832 nanae1914 D April 29, 2017, 1:58 a.m. OK PyPy 3 TESTS 30 280 51507200 1900
26744033 emayeses D April 29, 2017, 9:04 a.m. OK PyPy 3 TESTS 30 280 63692800 1900
40865947 rareone0602 D July 28, 2018, 3:11 a.m. OK PyPy 3 TESTS 30 311 22732800 1900
26877943 JustAni D May 5, 2017, 10:19 a.m. OK PyPy 3 TESTS 30 358 7577600 1900
59763777 nagato1208 D Aug. 30, 2019, 5:28 p.m. OK PyPy 3 TESTS 30 373 6656000 1900
42854617 tnowakow D Sept. 14, 2018, 8:27 a.m. OK Python 2 TESTS 30 654 27852800 1900
26961311 madn D May 8, 2017, 5:10 p.m. OK Python 3 TESTS 30 108 3276800 1900
26881782 iynaur87 D May 5, 2017, 1:37 p.m. OK Python 3 TESTS 30 405 8908800 1900
55171326 Felerius D June 5, 2019, 5:02 p.m. OK Python 3 TESTS 30 577 14438400 1900
27123827 jdh D May 15, 2017, 2:36 p.m. OK Python 3 TESTS 30 639 8396800 1900

remove filters

Back to search problems