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 244133723 April 28, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6756 ) B Distances to Zero PROGRAMMING constructive algorithms 1200

B'You are given the array of integer numbers a0, xe2 x80 x89a1, xe2 x80 x89..., xe2 x80 x89an xe2 x80 x89- xe2 x80 x891. For each element find the distance to the nearest zero (to the element which equals to zero). There is at least one zero element in the given array. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- length of the array a. The second line contains integer elements of the array separated by single spaces ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print the sequence d0, xe2 x80 x89d1, xe2 x80 x89..., xe2 x80 x89dn xe2 x80 x89- xe2 x80 x891, where di is the difference of indices between i and nearest j such that aj xe2 x80 x89= xe2 x80 x890. It is possible that i xe2 x80 x89= xe2 x80 x89j.'...

Tutorials

51768

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49099384 only_dima B Jan. 28, 2019, 10:51 a.m. OK Clang++17 Diagnostics TESTS 164 1653 1024000 1200
26729395 Voudy B April 28, 2017, 4:36 p.m. OK D TESTS 164 124 14643200 1200
26726784 Denor B April 28, 2017, 4 p.m. OK Delphi TESTS 164 93 7372800 1200
52537720 ruban B April 9, 2019, 4:27 p.m. OK Delphi TESTS 164 124 27852800 1200
31883146 kartoha B Oct. 30, 2017, 7 a.m. OK FPC TESTS 164 358 819200 1200
26724470 willdeath B April 28, 2017, 3:35 p.m. OK FPC TESTS 164 374 3276800 1200
26833041 Shadowest B May 4, 2017, 11:31 a.m. OK FPC TESTS 164 389 1638400 1200
26803356 danthanhhuynhpham B May 2, 2017, 1:30 p.m. OK FPC TESTS 164 389 4096000 1200
26744611 minhkhoi1026 B April 29, 2017, 9:37 a.m. OK FPC TESTS 164 389 4096000 1200
26748588 TShT B April 29, 2017, 1:28 p.m. OK FPC TESTS 164 389 9625600 1200
28194950 long240808 B July 1, 2017, 4:17 p.m. OK FPC TESTS 164 389 13619200 1200
26751440 TNH23 B April 29, 2017, 3:19 p.m. OK FPC TESTS 164 390 3276800 1200
27925848 tin2016_tdduy B June 20, 2017, 1:16 p.m. OK FPC TESTS 164 404 2662400 1200
31817120 arthurr B Oct. 27, 2017, 7:09 p.m. OK FPC TESTS 164 405 819200 1200
27101582 codekode B May 14, 2017, 6:22 a.m. OK GNU C TESTS 164 93 0 1200
26969866 ybnormal B May 9, 2017, 8:20 a.m. OK GNU C TESTS 164 93 0 1200
26969651 ybnormal B May 9, 2017, 8:03 a.m. OK GNU C TESTS 164 93 0 1200
26969497 ybnormal B May 9, 2017, 7:50 a.m. OK GNU C TESTS 164 93 0 1200
30083603 NihilistPilgrim B Sept. 4, 2017, 7:51 p.m. OK GNU C TESTS 164 93 819200 1200
27725958 Koshlendra7 B June 11, 2017, 6:48 p.m. OK GNU C TESTS 164 93 819200 1200
27581802 vjudge5 B June 5, 2017, 11:32 a.m. OK GNU C TESTS 164 93 819200 1200
27293429 gajera154 B May 23, 2017, 3:32 a.m. OK GNU C TESTS 164 93 819200 1200
32138020 vjudge5 B Nov. 8, 2017, 11:42 a.m. OK GNU C TESTS 164 93 1638400 1200
27686749 django_kil B June 9, 2017, 10:08 a.m. OK GNU C TESTS 164 93 1638400 1200
27671035 yasugongshang B June 8, 2017, 12:20 p.m. OK GNU C++ TESTS 164 31 2457600 1200
40981579 ReaLNero1 B July 30, 2018, 6:03 p.m. OK GNU C++ TESTS 164 46 2457600 1200
26797159 AkaneSasu B May 2, 2017, 6:17 a.m. OK GNU C++ TESTS 164 46 3584000 1200
31889195 vjudge1 B Oct. 30, 2017, 9:50 a.m. OK GNU C++ TESTS 164 62 1638400 1200
27103633 vjudge2 B May 14, 2017, 9:07 a.m. OK GNU C++ TESTS 164 62 2252800 1200
26723224 yveh1999 B April 28, 2017, 3:22 p.m. OK GNU C++ TESTS 164 62 2867200 1200
28539292 vjudge3 B July 14, 2017, 6:13 a.m. OK GNU C++ TESTS 164 62 3686400 1200
28665199 vjudge2 B July 18, 2017, 10:37 a.m. OK GNU C++ TESTS 164 62 3788800 1200
26722232 Gonens B April 28, 2017, 3:13 p.m. OK GNU C++ TESTS 164 62 4608000 1200
26785119 vjudge2 B May 1, 2017, 12:12 p.m. OK GNU C++ TESTS 164 62 6144000 1200
46026090 vjudge5 B Nov. 21, 2018, 11:19 a.m. OK GNU C11 TESTS 164 670 1638400 1200
48535860 NoSoul B Jan. 18, 2019, 2:13 p.m. OK GNU C11 TESTS 164 701 1638400 1200
47517432 vikr_182 B Dec. 26, 2018, 10:52 a.m. OK GNU C11 TESTS 164 717 25702400 1200
65553452 DevJewel B Nov. 22, 2019, 8:02 p.m. OK GNU C11 TESTS 164 733 2355200 1200
26821002 xiao-xiao B May 3, 2017, 3:02 p.m. OK GNU C11 TESTS 164 904 3481600 1200
26734211 Chapecoense B April 28, 2017, 7:32 p.m. OK GNU C11 TESTS 164 904 4300800 1200
31831496 vjudge3 B Oct. 28, 2017, 9:56 a.m. OK GNU C11 TESTS 164 919 1638400 1200
26896230 Pranky B May 6, 2017, 8:16 a.m. OK GNU C11 TESTS 164 920 2457600 1200
27354810 SRAONE B May 26, 2017, 11:37 a.m. OK GNU C11 TESTS 164 935 3276800 1200
26726888 orz010orz B April 28, 2017, 4:01 p.m. OK GNU C11 TESTS 164 935 5939200 1200
43827262 Umi B Oct. 5, 2018, 12:26 p.m. OK GNU C++11 TESTS 164 46 1945600 1200
26747537 zura1547 B April 29, 2017, 12:35 p.m. OK GNU C++11 TESTS 164 46 3481600 1200
26724501 SilverLining B April 28, 2017, 3:35 p.m. OK GNU C++11 TESTS 164 46 3686400 1200
27103640 vjudge4 B May 14, 2017, 9:07 a.m. OK GNU C++11 TESTS 164 61 2252800 1200
27897501 zcyskyaa B June 19, 2017, 6:48 a.m. OK GNU C++11 TESTS 164 62 2355200 1200
26969268 Vayh_E B May 9, 2017, 7:32 a.m. OK GNU C++11 TESTS 164 62 2457600 1200
26722756 Harmonica B April 28, 2017, 3:18 p.m. OK GNU C++11 TESTS 164 62 3481600 1200
26722899 flatline B April 28, 2017, 3:20 p.m. OK GNU C++11 TESTS 164 62 3686400 1200
26801291 llgyc B May 2, 2017, 11:49 a.m. OK GNU C++11 TESTS 164 62 3686400 1200
26727621 Jhamra B April 28, 2017, 4:10 p.m. OK GNU C++11 TESTS 164 62 4505600 1200
26751822 Egor.Lifar B April 29, 2017, 3:42 p.m. OK GNU C++14 TESTS 164 31 3584000 1200
40981014 ReaLNero1 B July 30, 2018, 5:48 p.m. OK GNU C++14 TESTS 164 46 1638400 1200
26725486 Linkus B April 28, 2017, 3:45 p.m. OK GNU C++14 TESTS 164 46 4300800 1200
26725455 LiChenKoh B April 28, 2017, 3:45 p.m. OK GNU C++14 TESTS 164 61 3584000 1200
27059591 nadhemm B May 12, 2017, 5:28 p.m. OK GNU C++14 TESTS 164 93 0 1200
26975541 N0.0n3 B May 9, 2017, 2:21 p.m. OK GNU C++14 TESTS 164 93 0 1200
27116308 fullbuster B May 15, 2017, 6:11 a.m. OK GNU C++14 TESTS 164 93 819200 1200
27401754 vjudge2 B May 28, 2017, 6:14 a.m. OK GNU C++14 TESTS 164 93 819200 1200
27439637 sulabh.16 B May 30, 2017, 4:16 a.m. OK GNU C++14 TESTS 164 93 819200 1200
27441161 tobiaswhy B May 30, 2017, 6:28 a.m. OK GNU C++14 TESTS 164 93 819200 1200
69430248 kk_ban B Jan. 23, 2020, 5:06 p.m. OK GNU C++17 TESTS 164 93 819200 1200
68943425 vjudge5 B Jan. 16, 2020, 3:13 p.m. OK GNU C++17 TESTS 164 93 1638400 1200
57176762 w42729 B July 17, 2019, 5:51 a.m. OK GNU C++17 TESTS 164 93 1638400 1200
57175749 2018329621205 B July 17, 2019, 5:27 a.m. OK GNU C++17 TESTS 164 93 1638400 1200
57175216 2018329621197 B July 17, 2019, 5:14 a.m. OK GNU C++17 TESTS 164 93 1638400 1200
57175078 _HonEy B July 17, 2019, 5:11 a.m. OK GNU C++17 TESTS 164 93 1638400 1200
57174785 zstu-mile B July 17, 2019, 5:03 a.m. OK GNU C++17 TESTS 164 93 1638400 1200
57173773 zstuycz B July 17, 2019, 4:37 a.m. OK GNU C++17 TESTS 164 93 1638400 1200
57173051 ULIRE B July 17, 2019, 4:18 a.m. OK GNU C++17 TESTS 164 93 1843200 1200
69809147 mc_rodrix99 B Jan. 30, 2020, 3:32 a.m. OK GNU C++17 TESTS 164 93 2457600 1200
27008459 lolopat2 B May 11, 2017, 8:16 a.m. OK Go TESTS 164 62 22835200 1200
56851164 porktw B July 11, 2019, 3:48 p.m. OK Go TESTS 164 124 18636800 1200
26733629 goC B April 28, 2017, 6:50 p.m. OK Go TESTS 164 311 30617600 1200
26756799 only_methol B April 29, 2017, 9:44 p.m. OK Go TESTS 164 624 28160000 1200
26747526 mishagam B April 29, 2017, 12:34 p.m. OK Go TESTS 164 655 29593600 1200
26756713 only_methol B April 29, 2017, 9:36 p.m. OK Go TESTS 164 717 28364800 1200
28372518 sl0th B July 8, 2017, 3:45 p.m. OK Haskell TESTS 164 124 79667200 1200
26723083 stczhc B April 28, 2017, 3:21 p.m. OK Haskell TESTS 164 140 77619200 1200
26787123 snek_Case B May 1, 2017, 2:21 p.m. OK Haskell TESTS 164 1684 124825600 1200
68988502 ankyy_0103 B Jan. 17, 2020, 1:22 p.m. OK Java 11 TESTS 164 264 3379200 1200
53316270 StayAwayFromBitches B April 26, 2019, 10:30 a.m. OK Java 8 TESTS 164 155 0 1200
46945811 sooraj10 B Dec. 12, 2018, 7:55 p.m. OK Java 8 TESTS 164 155 0 1200
26827766 ml_guy B May 4, 2017, 3:50 a.m. OK Java 8 TESTS 164 155 0 1200
26783536 lm010 B May 1, 2017, 10:30 a.m. OK Java 8 TESTS 164 156 20480000 1200
27402906 Sanjay_14BIT009 B May 28, 2017, 7:40 a.m. OK Java 8 TESTS 164 170 0 1200
60301271 jakejase2 B Sept. 9, 2019, 12:15 p.m. OK Java 8 TESTS 164 171 0 1200
27669739 kingcode B June 8, 2017, 11:13 a.m. OK Java 8 TESTS 164 171 0 1200
27408642 karanjobanputra B May 28, 2017, 10:10 a.m. OK Java 8 TESTS 164 171 0 1200
26832426 rks_mak B May 4, 2017, 10:48 a.m. OK Java 8 TESTS 164 171 0 1200
27003179 JPaulsen B May 10, 2017, 8:58 p.m. OK Java 8 TESTS 164 171 14540800 1200
28065423 dbittencourt B June 26, 2017, 10:21 p.m. OK JavaScript TESTS 164 124 31948800 1200
29061660 Ceva B July 31, 2017, 3:06 p.m. OK JavaScript TESTS 164 139 38400000 1200
29061545 vjudge3 B July 31, 2017, 3:06 p.m. OK JavaScript TESTS 164 140 38502400 1200
26724432 simonmysun B April 28, 2017, 3:34 p.m. OK JavaScript TESTS 164 233 56934400 1200
63779787 Eva B Oct. 30, 2019, 10:41 a.m. OK Kotlin TESTS 164 202 14131200 1200
42823403 Skndr801 B Sept. 13, 2018, 8:21 a.m. OK Mono C# TESTS 164 155 35430400 1200
65719298 gkochakidze B Nov. 25, 2019, 6:10 p.m. OK Mono C# TESTS 164 202 41062400 1200
26897915 TRR B May 6, 2017, 9:46 a.m. OK Mono C# TESTS 164 545 33382400 1200
27997130 Xtreemist B June 24, 2017, 4:41 a.m. OK Mono C# TESTS 164 576 42393600 1200
41437180 mid_or_feed B Aug. 10, 2018, 3:49 p.m. OK Mono C# TESTS 164 607 39321600 1200
48028592 tamunsio B Jan. 6, 2019, 10:49 a.m. OK Mono C# TESTS 164 733 34508800 1200
26722737 og.kostya B April 28, 2017, 3:18 p.m. OK MS C# TESTS 164 93 14131200 1200
26798829 fr0st B May 2, 2017, 8:44 a.m. OK MS C# TESTS 164 186 47001600 1200
26725532 lionvs13 B April 28, 2017, 3:46 p.m. OK MS C# TESTS 164 187 44032000 1200
26798812 fr0st B May 2, 2017, 8:43 a.m. OK MS C# TESTS 164 187 47001600 1200
26743944 artsin666 B April 29, 2017, 8:58 a.m. OK MS C# TESTS 164 202 45260800 1200
33149742 zhenia1698 B Dec. 12, 2017, 9:20 a.m. OK MS C# TESTS 164 514 41779200 1200
27092579 Enigma314 B May 13, 2017, 3:29 p.m. OK MS C# TESTS 164 530 32563200 1200
27371114 zazak B May 27, 2017, 9:36 a.m. OK MS C# TESTS 164 545 30003200 1200
27116871 IleksaNott B May 15, 2017, 7:10 a.m. OK MS C# TESTS 164 545 33382400 1200
26788402 Jose10go B May 1, 2017, 3:50 p.m. OK MS C# TESTS 164 546 39116800 1200
68993079 vjudge4 B Jan. 17, 2020, 4:03 p.m. OK MS C++ TESTS 164 93 1433600 1200
40252020 vjudge2 B July 13, 2018, 6:46 a.m. OK MS C++ TESTS 164 93 1638400 1200
40251429 vjudge4 B July 13, 2018, 6:24 a.m. OK MS C++ TESTS 164 93 1638400 1200
39854358 scorpiowf B July 2, 2018, 1:40 a.m. OK MS C++ TESTS 164 93 1638400 1200
32043536 vjudge3 B Nov. 4, 2017, 5:57 a.m. OK MS C++ TESTS 164 93 1638400 1200
62111728 vjudge2 B Oct. 8, 2019, 12:22 p.m. OK MS C++ TESTS 164 93 1638400 1200
69034945 vjudge4 B Jan. 18, 2020, 8:51 a.m. OK MS C++ TESTS 164 93 1638400 1200
27564483 vjudge5 B June 4, 2017, 1:09 p.m. OK MS C++ TESTS 164 93 1740800 1200
54166134 vjudge3 B May 15, 2019, 8:47 a.m. OK MS C++ TESTS 164 93 2457600 1200
26763185 iamexist B April 30, 2017, 8 a.m. OK MS C++ TESTS 164 93 2867200 1200
69163951 vjudge3 B Jan. 20, 2020, 2:25 a.m. OK MS C++ 2017 TESTS 164 124 2457600 1200
57174672 ZSTU-2018329621261 B July 17, 2019, 5 a.m. OK MS C++ 2017 TESTS 164 124 3379200 1200
69244562 vjudge5 B Jan. 21, 2020, 12:30 p.m. OK MS C++ 2017 TESTS 164 139 1024000 1200
68364287 Ahmed.Mustafa.0100 B Jan. 7, 2020, 3:20 p.m. OK MS C++ 2017 TESTS 164 265 1228800 1200
54272398 duyen.bit2212 B May 17, 2019, 9:25 a.m. OK MS C++ 2017 TESTS 164 265 1638400 1200
68080559 disputant B Jan. 2, 2020, 2:13 p.m. OK MS C++ 2017 TESTS 164 280 2560000 1200
64319973 De_Line B Nov. 5, 2019, 3:19 p.m. OK MS C++ 2017 TESTS 164 280 3276800 1200
54996366 wjli B June 3, 2019, 12:17 a.m. OK MS C++ 2017 TESTS 164 295 1638400 1200
62248017 Mad112233 B Oct. 10, 2019, 7:46 a.m. OK MS C++ 2017 TESTS 164 296 2560000 1200
62314271 marewolf B Oct. 10, 2019, 2:48 p.m. OK MS C++ 2017 TESTS 164 296 3174400 1200
26730430 mayakin B April 28, 2017, 4:53 p.m. OK PHP TESTS 164 156 30720000 1200
27118899 andreamaf B May 15, 2017, 9:52 a.m. OK PyPy 2 TESTS 164 155 17510400 1200
29812162 m7mdbadawy B Aug. 26, 2017, 5:53 p.m. OK PyPy 2 TESTS 164 187 19251200 1200
40755219 aeternalis1 B July 25, 2018, 9:29 p.m. OK PyPy 2 TESTS 164 217 15052800 1200
26726655 attiw B April 28, 2017, 3:59 p.m. OK PyPy 2 TESTS 164 233 36966400 1200
26723324 har_vi B April 28, 2017, 3:24 p.m. OK PyPy 2 TESTS 164 1325 33792000 1200
26730679 shangtai B April 28, 2017, 4:57 p.m. OK PyPy 2 TESTS 164 1388 35020800 1200
41912126 Onesh0t B Aug. 20, 2018, 6:35 p.m. OK PyPy 2 TESTS 164 1559 11980800 1200
59390094 kopok2 B Aug. 24, 2019, 8:07 a.m. OK PyPy 3 TESTS 164 436 20992000 1200
29537460 Qumeric B Aug. 17, 2017, 9:25 p.m. OK PyPy 3 TESTS 164 452 22220800 1200
56290911 scambret B June 30, 2019, 12:44 a.m. OK PyPy 3 TESTS 164 498 21299200 1200
26724157 Naoki_M B April 28, 2017, 3:32 p.m. OK PyPy 3 TESTS 164 498 46182400 1200
68008692 Drago_ B Dec. 31, 2019, 2:35 p.m. OK PyPy 3 TESTS 164 499 19558400 1200
60851449 ashok123 B Sept. 19, 2019, 2:12 p.m. OK PyPy 3 TESTS 164 499 20172800 1200
67652811 Mkay6122 B Dec. 26, 2019, 12:48 p.m. OK PyPy 3 TESTS 164 514 18841600 1200
65288694 KirKhal B Nov. 18, 2019, 9:02 a.m. OK PyPy 3 TESTS 164 529 15667200 1200
62393947 shall_not_pass B Oct. 12, 2019, 4:25 a.m. OK PyPy 3 TESTS 164 545 16793600 1200
55844964 gaurav17050 B June 20, 2019, 8:33 p.m. OK PyPy 3 TESTS 164 560 21708800 1200
27457625 sinaj B May 31, 2017, 1:16 a.m. OK Python 2 TESTS 164 311 24678400 1200
26723960 tjake B April 28, 2017, 3:30 p.m. OK Python 2 TESTS 164 327 20275200 1200
26721856 Lewin B April 28, 2017, 3:09 p.m. OK Python 2 TESTS 164 327 23449600 1200
26725515 markin2000 B April 28, 2017, 3:46 p.m. OK Python 2 TESTS 164 358 24985600 1200
27471407 Exodia B May 31, 2017, 4:48 p.m. OK Python 2 TESTS 164 389 11468800 1200
26873714 nealzane B May 5, 2017, 5:52 a.m. OK Python 2 TESTS 164 389 11571200 1200
28479705 anonta B July 12, 2017, 4:52 p.m. OK Python 2 TESTS 164 389 16896000 1200
59521919 Ex0d1a B Aug. 26, 2019, 12:10 p.m. OK Python 2 TESTS 164 436 11161600 1200
27367958 mithi100 B May 27, 2017, 6:13 a.m. OK Python 2 TESTS 164 436 14233600 1200
26724736 pankajAhuja B April 28, 2017, 3:37 p.m. OK Python 2 TESTS 164 436 15872000 1200
31378242 yugle7 B Oct. 15, 2017, 9:57 p.m. OK Python 3 TESTS 164 265 21913600 1200
26725735 zah4em B April 28, 2017, 3:48 p.m. OK Python 3 TESTS 164 311 26828800 1200
27457600 sunhong B May 31, 2017, 1:11 a.m. OK Python 3 TESTS 164 327 20889600 1200
27403031 Bumazhka B May 28, 2017, 7:47 a.m. OK Python 3 TESTS 164 327 25190400 1200
26807675 Void_Temp B May 2, 2017, 6:33 p.m. OK Python 3 TESTS 164 327 28160000 1200
26776350 orailly B April 30, 2017, 11:48 p.m. OK Python 3 TESTS 164 358 20377600 1200
26722706 and800 B April 28, 2017, 3:18 p.m. OK Python 3 TESTS 164 358 32972800 1200
26726885 lifeiteng B April 28, 2017, 4:01 p.m. OK Python 3 TESTS 164 374 27033600 1200
26728728 anash1 B April 28, 2017, 4:25 p.m. OK Python 3 TESTS 164 374 27136000 1200
26801703 tellmewhy SkeW Gardiys B May 2, 2017, 12:11 p.m. OK Python 3 TESTS 164 389 25907200 1200
26876303 sunchara B May 5, 2017, 8:34 a.m. OK Ruby TESTS 164 421 36352000 1200
44184887 ondrej.hosak B Oct. 12, 2018, 12:47 p.m. OK Ruby TESTS 164 451 37273600 1200
27459326 sunhong B May 31, 2017, 5:02 a.m. OK Ruby TESTS 164 577 43520000 1200
26973456 cielavenir B May 9, 2017, 12:20 p.m. OK Ruby TESTS 164 623 35737600 1200
59393344 matijap B Aug. 24, 2019, 9:24 a.m. OK Rust TESTS 164 78 8089600 1200

remove filters

Back to search problems