Educational Codeforces Round 34 (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
903 Educational Codeforces Round 34 (Rated for Div. 2) FINISHED False 7200 218732099 Dec. 12, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3873 ) D Almost Difference PROGRAMMING data structures math 2200

B"Let's denote a function You are given an array a consisting of n integers. You have to calculate the sum of d(ai, xe2 x80 x89aj) over all pairs (i, xe2 x80 x89j) such that 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n. The first line contains one integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200000) -- the number of elements in a. The second line contains n integers a1, a2, ..., an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- elements of the array. Print one integer -- the sum of d(ai, xe2 x80 x89aj) over all pairs (i, xe2 x80 x89j) such that 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n. In the first example: "...

Tutorials

Educational Codeforces Round 34 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
33266835 nanae1914 D Dec. 15, 2017, 2:07 p.m. OK D TESTS 45 233 39014400 2200
33221526 FalseMirror D Dec. 13, 2017, 5:26 p.m. OK D TESTS 45 327 39424000 2200
33199767 ImForbiddenToSayILoveYou D Dec. 13, 2017, 1:57 a.m. OK FPC TESTS 45 140 8089600 2200
33244093 Qambitions D Dec. 14, 2017, 3:24 p.m. OK FPC TESTS 45 186 33689600 2200
33396642 tuan2006 D Dec. 19, 2017, 4:02 a.m. OK FPC TESTS 45 202 8806400 2200
33238204 HsOH D Dec. 14, 2017, 11:38 a.m. OK FPC TESTS 45 202 8806400 2200
33221824 AsahiKasugano D Dec. 13, 2017, 5:38 p.m. OK FPC TESTS 45 327 5632000 2200
33811300 White_Devil D Dec. 30, 2017, 2:23 p.m. OK GNU C++ TESTS 45 62 6656000 2200
33207283 Suffoquer_Fang D Dec. 13, 2017, 8:42 a.m. OK GNU C++ TESTS 45 93 10547200 2200
33207336 Suffoquer_Fang D Dec. 13, 2017, 8:44 a.m. OK GNU C++ TESTS 45 93 12083200 2200
33207390 Suffoquer_Fang D Dec. 13, 2017, 8:47 a.m. OK GNU C++ TESTS 45 93 14131200 2200
33199753 tolight D Dec. 13, 2017, 1:56 a.m. OK GNU C++ TESTS 45 93 77414400 2200
42455500 Contna D Sept. 4, 2018, 11:11 a.m. OK GNU C++ TESTS 45 109 6758400 2200
34549043 nlgxh1 D Jan. 25, 2018, 2:22 p.m. OK GNU C++ TESTS 45 109 9318400 2200
33240557 xht13127 D Dec. 14, 2017, 1:15 p.m. OK GNU C++ TESTS 45 109 18534400 2200
42455446 Contna D Sept. 4, 2018, 11:09 a.m. OK GNU C++ TESTS 45 124 6758400 2200
33583641 AuqaKyz D Dec. 24, 2017, 4:48 a.m. OK GNU C++ TESTS 45 124 11673600 2200
52612564 rainboy D April 11, 2019, 4:45 p.m. OK GNU C11 TESTS 45 93 3993600 2200
33401513 W-void D Dec. 19, 2017, 8:26 a.m. OK GNU C11 TESTS 45 93 10547200 2200
33401443 W-void D Dec. 19, 2017, 8:23 a.m. OK GNU C11 TESTS 45 108 10444800 2200
65583086 SkuLexX D Nov. 23, 2019, 11:35 a.m. OK GNU C11 TESTS 45 420 6348800 2200
40978851 ReaLNero1 D July 30, 2018, 4:49 p.m. OK GNU C++11 TESTS 45 62 4812800 2200
33472638 wraith66 D Dec. 21, 2017, 7:20 a.m. OK GNU C++11 TESTS 45 62 6860800 2200
51406915 vjudge1 D March 17, 2019, 10:15 a.m. OK GNU C++11 TESTS 45 78 3072000 2200
51406057 luogu_bot2 D March 17, 2019, 9:55 a.m. OK GNU C++11 TESTS 45 78 3072000 2200
34835424 PinkRabbit D Feb. 2, 2018, 11:20 a.m. OK GNU C++11 TESTS 45 78 7680000 2200
64280380 vjudge1 D Nov. 5, 2019, 1:17 a.m. OK GNU C++11 TESTS 45 93 3174400 2200
33218082 wcy1122 D Dec. 13, 2017, 3:37 p.m. OK GNU C++11 TESTS 45 93 4505600 2200
33226401 krijgertje D Dec. 13, 2017, 10:08 p.m. OK GNU C++11 TESTS 45 93 8499200 2200
34506934 yyqchemic D Jan. 24, 2018, 7:16 a.m. OK GNU C++11 TESTS 45 93 17920000 2200
33199851 2014CAIS01 D Dec. 13, 2017, 2:07 a.m. OK GNU C++11 TESTS 45 109 7680000 2200
33201066 Ostmbh D Dec. 13, 2017, 3:35 a.m. OK GNU C++14 TESTS 45 93 5120000 2200
64206165 vjudge3 D Nov. 4, 2019, 12:55 p.m. OK GNU C++14 TESTS 45 93 5632000 2200
34835075 PinkRabbit D Feb. 2, 2018, 11:05 a.m. OK GNU C++14 TESTS 45 93 7475200 2200
33268690 ayushjain2809 D Dec. 15, 2017, 3:05 p.m. OK GNU C++14 TESTS 45 93 7987200 2200
33596070 Wizmann D Dec. 24, 2017, 3:05 p.m. OK GNU C++14 TESTS 45 108 6656000 2200
34098414 wilwxk D Jan. 12, 2018, 1:14 a.m. OK GNU C++14 TESTS 45 109 9625600 2200
34648962 mdpfeifer D Jan. 29, 2018, 3:46 a.m. OK GNU C++14 TESTS 45 109 9728000 2200
64236052 naive_wcx D Nov. 4, 2019, 2:12 p.m. OK GNU C++14 TESTS 45 124 5632000 2200
34577750 Jian_Ron D Jan. 26, 2018, 2:01 p.m. OK GNU C++14 TESTS 45 124 5939200 2200
53892413 zstu_MingSD D May 9, 2019, 2 a.m. OK GNU C++14 TESTS 45 124 6451200 2200
42751980 laurent.demonet D Sept. 11, 2018, 3:11 a.m. OK GNU C++17 TESTS 45 124 8192000 2200
63413201 abdulrahman_aj D Oct. 26, 2019, 2:24 a.m. OK GNU C++17 TESTS 45 140 2457600 2200
63387296 vjudge2 D Oct. 25, 2019, 2:08 p.m. OK GNU C++17 TESTS 45 171 7987200 2200
52552779 Hipo_3412 D April 10, 2019, 5:55 a.m. OK GNU C++17 TESTS 45 186 8192000 2200
67290533 SuiT_Up D Dec. 20, 2019, 3:29 p.m. OK GNU C++17 TESTS 45 186 8294400 2200
59651714 the_timur D Aug. 29, 2019, 8:32 a.m. OK GNU C++17 TESTS 45 187 11980800 2200
64741641 Alphagocc D Nov. 12, 2019, 12:11 p.m. OK GNU C++17 TESTS 45 202 2560000 2200
64740231 Alphagocc D Nov. 12, 2019, 11:44 a.m. OK GNU C++17 TESTS 45 202 2560000 2200
64573689 sjc061031 D Nov. 9, 2019, 10:04 a.m. OK GNU C++17 TESTS 45 202 31334400 2200
62898289 why_._ D Oct. 19, 2019, 2:25 a.m. OK GNU C++17 TESTS 45 202 39424000 2200
33442218 tangbingchang D Dec. 20, 2017, 12:34 a.m. OK Go TESTS 45 234 43212800 2200
47349628 qb2008 D Dec. 22, 2018, 12:50 a.m. OK Go TESTS 45 249 9830400 2200
33246047 1406100039 D Dec. 14, 2017, 4:40 p.m. OK Go TESTS 45 265 37478400 2200
33260573 1406100039 D Dec. 15, 2017, 10:23 a.m. OK Go TESTS 45 498 56729600 2200
33245575 1406100039 D Dec. 14, 2017, 4:21 p.m. OK Go TESTS 45 514 39321600 2200
33245042 1406100039 D Dec. 14, 2017, 3:59 p.m. OK Go TESTS 45 514 39526400 2200
33231134 sl0th D Dec. 14, 2017, 6:12 a.m. OK Haskell TESTS 45 1075 179507200 2200
33364728 meridional D Dec. 17, 2017, 10:31 p.m. OK Haskell TESTS 45 1715 250880000 2200
68458411 wery0 D Jan. 9, 2020, 5:09 p.m. OK Java 11 TESTS 45 639 14745600 2200
33220933 kuko- D Dec. 13, 2017, 5:01 p.m. OK Java 8 TESTS 45 264 37683200 2200
62096436 Whiplash99 D Oct. 8, 2019, 7:42 a.m. OK Java 8 TESTS 45 280 15155200 2200
33247715 vjudge4 D Dec. 14, 2017, 5:59 p.m. OK Java 8 TESTS 45 295 34611200 2200
33213261 parth_15 D Dec. 13, 2017, 12:40 p.m. OK Java 8 TESTS 45 296 31027200 2200
55593647 Baroudy D June 15, 2019, 1:48 p.m. OK Java 8 TESTS 45 327 12800000 2200
33592426 tarasevich D Dec. 24, 2017, 12:03 p.m. OK Java 8 TESTS 45 327 35635200 2200
33207528 jamesyang2333 D Dec. 13, 2017, 8:52 a.m. OK Java 8 TESTS 45 327 38502400 2200
40589655 AQT D July 20, 2018, 9:03 p.m. OK Java 8 TESTS 45 342 10547200 2200
33243002 Ajudiya_13 D Dec. 14, 2017, 2:45 p.m. OK Java 8 TESTS 45 342 34611200 2200
33252428 4mda4mda D Dec. 15, 2017, 12:43 a.m. OK Java 8 TESTS 45 342 37990400 2200
62782816 toraoh D Oct. 17, 2019, 1:22 p.m. OK Mono C# TESTS 45 187 40652800 2200
63266954 szechuan_sauce D Oct. 24, 2019, 1:01 a.m. OK Mono C# TESTS 45 265 39731200 2200
33248000 og.kostya D Dec. 14, 2017, 6:11 p.m. OK MS C# TESTS 45 77 22630400 2200
33208777 artsin666 D Dec. 13, 2017, 9:45 a.m. OK MS C# TESTS 45 249 47718400 2200
38134789 scorpiowf D May 12, 2018, 9:59 a.m. OK MS C++ TESTS 45 124 31948800 2200
33388041 mshcherba D Dec. 18, 2017, 5:34 p.m. OK MS C++ TESTS 45 234 3686400 2200
33909279 NVBabichev D Jan. 4, 2018, 6:16 p.m. OK MS C++ TESTS 45 342 54169600 2200
40100640 MenOfPassion D July 9, 2018, 4:54 a.m. OK MS C++ TESTS 45 498 20172800 2200
33212151 innok96 D Dec. 13, 2017, 12:02 p.m. OK MS C++ TESTS 45 514 22937600 2200
36328003 RCG D March 16, 2018, 2:02 p.m. OK MS C++ TESTS 45 655 27545600 2200
33240572 Maffka D Dec. 14, 2017, 1:15 p.m. OK MS C++ TESTS 45 1107 9216000 2200
33227929 ecokeco D Dec. 14, 2017, 1:26 a.m. OK PHP TESTS 45 1824 95744000 2200
33230855 HIT_Zero D Dec. 14, 2017, 5:57 a.m. OK PyPy 2 TESTS 45 218 39833600 2200
53950736 vjudge3 D May 10, 2019, 9:24 a.m. OK PyPy 2 TESTS 45 233 16384000 2200
34353253 Logsha D Jan. 20, 2018, 12:54 p.m. OK PyPy 2 TESTS 45 233 37376000 2200
59782022 vjudge2 D Aug. 31, 2019, 3:46 a.m. OK PyPy 2 TESTS 45 280 20172800 2200
33234681 linsinn D Dec. 14, 2017, 9:10 a.m. OK PyPy 2 TESTS 45 280 35840000 2200
39811105 frmsaul D July 1, 2018, 2:56 a.m. OK PyPy 2 TESTS 45 327 15360000 2200
60394691 pajenegod D Sept. 11, 2019, 2:29 p.m. OK PyPy 2 TESTS 45 358 29184000 2200
33198241 masonsbro D Dec. 12, 2017, 11:26 p.m. OK PyPy 2 TESTS 45 358 62054400 2200
33511865 JiK D Dec. 22, 2017, 2:48 p.m. OK PyPy 2 TESTS 45 358 68300800 2200
33209033 Uditgulati0 D Dec. 13, 2017, 9:59 a.m. OK PyPy 2 TESTS 45 374 36147200 2200
51039076 NiKS001 D March 8, 2019, 4:18 p.m. OK PyPy 3 TESTS 45 373 22528000 2200
65728184 tute7627 D Nov. 26, 2019, 2:20 a.m. OK PyPy 3 TESTS 45 390 19865600 2200
65728539 Just_a_game_on_your_lips D Nov. 26, 2019, 2:44 a.m. OK PyPy 3 TESTS 45 405 18944000 2200
69253080 shubham26857 D Jan. 21, 2020, 2:51 p.m. OK PyPy 3 TESTS 45 405 19763200 2200
55842084 Mn619 D June 20, 2019, 6:37 p.m. OK PyPy 3 TESTS 45 405 21913600 2200
65728778 vjudge4 D Nov. 26, 2019, 3 a.m. OK PyPy 3 TESTS 45 420 18944000 2200
65706077 vjudge2 D Nov. 25, 2019, 12:38 p.m. OK PyPy 3 TESTS 45 420 19353600 2200
69292701 TheMightGuy D Jan. 22, 2020, 10:58 a.m. OK PyPy 3 TESTS 45 420 19763200 2200
35340983 imulan D Feb. 16, 2018, 2:43 p.m. OK PyPy 3 TESTS 45 420 43212800 2200
65810977 morio__ D Nov. 27, 2019, 8:58 a.m. OK PyPy 3 TESTS 45 421 19558400 2200
33524081 ReaLNero D Dec. 23, 2017, 3:52 a.m. OK Python 2 TESTS 45 421 17612800 2200
34547696 nlgxh0 D Jan. 25, 2018, 1:35 p.m. OK Python 2 TESTS 45 436 21299200 2200
33203550 Grunt D Dec. 13, 2017, 6:09 a.m. OK Python 2 TESTS 45 436 21299200 2200
33205745 helloww D Dec. 13, 2017, 7:49 a.m. OK Python 2 TESTS 45 451 23244800 2200
33202576 madara D Dec. 13, 2017, 5:16 a.m. OK Python 2 TESTS 45 452 29081600 2200
33267306 sad_club_piece D Dec. 15, 2017, 2:21 p.m. OK Python 2 TESTS 45 467 17510400 2200
33377794 MessyShen D Dec. 18, 2017, 11:57 a.m. OK Python 2 TESTS 45 499 21401600 2200
34589861 Guty D Jan. 26, 2018, 11:31 p.m. OK Python 2 TESTS 45 514 29798400 2200
33217126 superman_k D Dec. 13, 2017, 3 p.m. OK Python 2 TESTS 45 529 21606400 2200
33239464 IronMan07 D Dec. 14, 2017, 12:33 p.m. OK Python 2 TESTS 45 529 27136000 2200
35601914 dlwocks31 D Feb. 23, 2018, 3:59 p.m. OK Python 3 TESTS 45 405 21913600 2200
33223634 yuusha D Dec. 13, 2017, 7:10 p.m. OK Python 3 TESTS 45 405 28672000 2200
33247260 arthuretf D Dec. 14, 2017, 5:39 p.m. OK Python 3 TESTS 45 420 21913600 2200
33359171 satylogin D Dec. 17, 2017, 5:53 p.m. OK Python 3 TESTS 45 421 22732800 2200
34512090 yura_antonych D Jan. 24, 2018, 9:56 a.m. OK Python 3 TESTS 45 421 23142400 2200
33223983 pzdba D Dec. 13, 2017, 7:26 p.m. OK Python 3 TESTS 45 421 28467200 2200
33475552 eku D Dec. 21, 2017, 9:51 a.m. OK Python 3 TESTS 45 436 21913600 2200
33373520 Hillmouse D Dec. 18, 2017, 9:10 a.m. OK Python 3 TESTS 45 436 21913600 2200
33711407 redwood D Dec. 28, 2017, 1:10 p.m. OK Python 3 TESTS 45 436 22732800 2200
33222624 Meternal D Dec. 13, 2017, 6:18 p.m. OK Python 3 TESTS 45 436 22732800 2200
33271357 orailly D Dec. 15, 2017, 4:37 p.m. OK Ruby TESTS 45 529 45977600 2200
33536153 corvvs_ D Dec. 23, 2017, 11:48 a.m. OK Ruby TESTS 45 529 47513600 2200
33206771 Key_v2 D Dec. 13, 2017, 8:22 a.m. OK Ruby TESTS 45 655 45875200 2200
38929514 EthanITargaryen D June 3, 2018, 7:52 p.m. OK Ruby TESTS 45 670 45977600 2200

remove filters

Back to search problems