Educational Codeforces Round 23

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
817 Educational Codeforces Round 23 FINISHED False 8100 239986523 June 15, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5834 ) B Makes And The Product PROGRAMMING combinatorics implementation math sortings 1500

B"After returning from the army Makes received a gift -- an array a consisting of n positive integer numbers. He hadn't been solving problems for a long time, so he became interested to answer a particular question: how many triples of indices (i, xe2 x80 x89 j, xe2 x80 x89 k) (i xe2 x80 x89< xe2 x80 x89j xe2 x80 x89< xe2 x80 x89k), such that ai xc2 xb7aj xc2 xb7ak is minimum possible, are there in the array? Help him with it! The first line of input contains a positive integer number n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of elements in array a. The second line contains n positive integer numbers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the elements of a given array. Print one number -- the quantity of triples (i, xe2 x80 x89 j, xe2 x80 x89 k) such that i, xe2 x80 x89 j and k are pairwise distinct and ai xc2 xb7aj xc2 xb7ak is minimum possible. In the first example Makes always chooses three ones out of four, and the number of ways to choose them is 4. In the second example a triple of numbers (1, xe2 x80 x892, xe2 x80 x893) is chosen (numbers, not indices). Since there are two ways to choose an element 3, then the answer is 2. In the third example a triple of numbers (1, xe2 x80 x891, xe2 x80 x892) is chosen, and there's only one way to choose indices. "...

Tutorials

52638

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27844138 nanae1914 B June 17, 2017, 10:54 a.m. OK D TESTS 80 46 4198400 1500
27800059 nanae1914 B June 15, 2017, 3:40 p.m. OK D TESTS 80 46 4198400 1500
27843955 nanae1914 B June 17, 2017, 10:42 a.m. OK D TESTS 80 62 4198400 1500
27799034 ruban B June 15, 2017, 3:29 p.m. OK Delphi TESTS 80 61 44339200 1500
27801434 VladProg B June 15, 2017, 3:54 p.m. OK FPC TESTS 80 31 0 1500
27806585 tin2016_tdduy B June 15, 2017, 5:10 p.m. OK FPC TESTS 80 31 1638400 1500
27964848 OneDeilant B June 22, 2017, 12:22 p.m. OK FPC TESTS 80 31 2048000 1500
27805734 slavik228 B June 15, 2017, 4:54 p.m. OK FPC TESTS 80 46 7987200 1500
27804843 KagamiharaNadeshiko B June 15, 2017, 4:41 p.m. OK FPC TESTS 80 62 819200 1500
27798872 tungtinhoctre126 B June 15, 2017, 3:28 p.m. OK FPC TESTS 80 1419 5427200 1500
27806141 vuquelam29 B June 15, 2017, 5:01 p.m. OK FPC TESTS 80 1450 2252800 1500
28074145 linhnd99 B June 27, 2017, 10:07 a.m. OK FPC TESTS 80 1450 3174400 1500
27999002 Zulqarnaen B June 24, 2017, 6:51 a.m. OK FPC TESTS 80 1450 4812800 1500
27803186 tin2016_ndhanh B June 15, 2017, 4:15 p.m. OK FPC TESTS 80 1450 6758400 1500
31200808 pk1210 B Oct. 10, 2017, 6:51 p.m. OK GNU C TESTS 80 31 0 1500
27840666 PratikMandlecha B June 17, 2017, 7:48 a.m. OK GNU C TESTS 80 31 409600 1500
27803075 changz B June 15, 2017, 4:14 p.m. OK GNU C TESTS 80 31 819200 1500
28184752 1605069 B July 1, 2017, 5:52 a.m. OK GNU C TESTS 80 31 2252800 1500
27997177 anirudhbansal B June 24, 2017, 4:45 a.m. OK GNU C TESTS 80 31 2252800 1500
27898484 ayush_a97 B June 19, 2017, 7:35 a.m. OK GNU C TESTS 80 31 3993600 1500
27797890 rainboy B June 15, 2017, 3:20 p.m. OK GNU C TESTS 80 46 409600 1500
27806658 Wolve_rine B June 15, 2017, 5:11 p.m. OK GNU C TESTS 80 46 1638400 1500
27969607 ahmed127011 B June 22, 2017, 4:50 p.m. OK GNU C TESTS 80 46 1945600 1500
27976706 swhat B June 23, 2017, 4:24 a.m. OK GNU C TESTS 80 46 2662400 1500
29301809 Scut82 B Aug. 9, 2017, 8:49 a.m. OK GNU C++ TESTS 80 15 2457600 1500
28474937 zqh_wz B July 12, 2017, 1:13 p.m. OK GNU C++ TESTS 80 15 2457600 1500
27797443 ColdSu B June 15, 2017, 3:16 p.m. OK GNU C++ TESTS 80 30 409600 1500
27797269 ColdSu B June 15, 2017, 3:15 p.m. OK GNU C++ TESTS 80 30 409600 1500
27797019 ColdSu B June 15, 2017, 3:13 p.m. OK GNU C++ TESTS 80 30 409600 1500
27915852 MTJJH B June 20, 2017, 2:31 a.m. OK GNU C++ TESTS 80 31 204800 1500
29725854 vjudge5 B Aug. 24, 2017, 8:23 a.m. OK GNU C++ TESTS 80 31 204800 1500
29725820 vjudge3 B Aug. 24, 2017, 8:22 a.m. OK GNU C++ TESTS 80 31 204800 1500
29725592 vjudge1 B Aug. 24, 2017, 8:10 a.m. OK GNU C++ TESTS 80 31 204800 1500
27835730 AkaneSasu B June 17, 2017, 1:23 a.m. OK GNU C++ TESTS 80 31 204800 1500
27805707 KisstheRain B June 15, 2017, 4:54 p.m. OK GNU C11 TESTS 80 31 819200 1500
28018703 Sai_Narsimha B June 25, 2017, 8:52 a.m. OK GNU C11 TESTS 80 46 2662400 1500
54283981 vishal118 B May 17, 2019, 2:54 p.m. OK GNU C11 TESTS 80 61 1638400 1500
69907637 vjudge2 B Jan. 31, 2020, 2:32 p.m. OK GNU C11 TESTS 80 62 1638400 1500
27798991 llgyc B June 15, 2017, 3:29 p.m. OK GNU C++11 TESTS 80 15 409600 1500
27814054 Umi B June 16, 2017, 12:18 a.m. OK GNU C++11 TESTS 80 15 409600 1500
27821456 ritveeka B June 16, 2017, 9:22 a.m. OK GNU C++11 TESTS 80 15 409600 1500
27806889 Tremail B June 15, 2017, 5:14 p.m. OK GNU C++11 TESTS 80 15 3993600 1500
27809607 Jhamra B June 15, 2017, 6:59 p.m. OK GNU C++11 TESTS 80 30 1228800 1500
27799800 Qudrat_Ibadullayev B June 15, 2017, 3:37 p.m. OK GNU C++11 TESTS 80 30 7987200 1500
27799602 J.Lili B June 15, 2017, 3:35 p.m. OK GNU C++11 TESTS 80 31 0 1500
27882959 aquablitz11 B June 18, 2017, 10:55 a.m. OK GNU C++11 TESTS 80 31 204800 1500
27902430 JINSEOALIVE B June 19, 2017, 10:42 a.m. OK GNU C++11 TESTS 80 31 204800 1500
27829449 nonaforce B June 16, 2017, 4:25 p.m. OK GNU C++11 TESTS 80 31 204800 1500
27801335 ljq1398 B June 15, 2017, 3:53 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27799684 naijeuohz B June 15, 2017, 3:36 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27884204 DevinH B June 18, 2017, 12:12 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27832774 JoseAcv2 B June 16, 2017, 8:11 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27828893 Ocykat B June 16, 2017, 3:51 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27826406 Lokker B June 16, 2017, 1:44 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27801672 jaewan B June 15, 2017, 3:56 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27904997 fake_genius B June 19, 2017, 12:55 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27886319 vist0r B June 18, 2017, 2:30 p.m. OK GNU C++14 TESTS 80 31 409600 1500
27845553 Matcha_Cake B June 17, 2017, 12:17 p.m. OK GNU C++14 TESTS 80 31 409600 1500
58654095 charity B Aug. 12, 2019, 8:30 a.m. OK GNU C++17 TESTS 80 46 0 1500
46559303 Andrei501 B Dec. 3, 2018, 7:12 p.m. OK GNU C++17 TESTS 80 46 0 1500
67434452 007kartik B Dec. 22, 2019, 4:32 p.m. OK GNU C++17 TESTS 80 46 0 1500
63413872 greenblade B Oct. 26, 2019, 2:52 a.m. OK GNU C++17 TESTS 80 46 409600 1500
63954901 luogu_bot4 B Nov. 1, 2019, 12:33 a.m. OK GNU C++17 TESTS 80 46 409600 1500
63954796 vjudge4 B Nov. 1, 2019, 12:27 a.m. OK GNU C++17 TESTS 80 46 409600 1500
60062153 qinding B Sept. 5, 2019, 7:29 a.m. OK GNU C++17 TESTS 80 46 409600 1500
58567371 vjudge4 B Aug. 11, 2019, 8:34 a.m. OK GNU C++17 TESTS 80 46 409600 1500
58528387 vjudge1 B Aug. 10, 2019, 8:17 a.m. OK GNU C++17 TESTS 80 46 409600 1500
53973617 vjudge2 B May 11, 2019, 1:49 a.m. OK GNU C++17 TESTS 80 46 409600 1500
28287830 hoangnc.io B July 4, 2017, 6:57 p.m. OK Go TESTS 80 62 46182400 1500
27865621 ayeloss B June 17, 2017, 4:47 p.m. OK Go TESTS 80 156 22425600 1500
27831569 hhandleh B June 16, 2017, 6:43 p.m. OK Haskell TESTS 80 93 26419200 1500
27801659 odomontois B June 15, 2017, 3:56 p.m. OK Haskell TESTS 80 155 32768000 1500
69249878 ankyy_0103 B Jan. 21, 2020, 1:58 p.m. OK Java 11 TESTS 80 249 0 1500
63667170 preda2or romit17 B Oct. 28, 2019, 3:44 p.m. OK Java 8 TESTS 80 124 0 1500
27881850 chojh1222 B June 18, 2017, 9:51 a.m. OK Java 8 TESTS 80 124 0 1500
35759155 umang._.panchal B Feb. 27, 2018, 11:07 a.m. OK Java 8 TESTS 80 124 20684800 1500
48693246 jenish9599 B Jan. 21, 2019, 7:07 p.m. OK Java 8 TESTS 80 139 0 1500
27808395 kunal_khatri B June 15, 2017, 6:04 p.m. OK Java 8 TESTS 80 140 0 1500
27808036 hitesh.bothra B June 15, 2017, 5:50 p.m. OK Java 8 TESTS 80 140 0 1500
27808017 uwi B June 15, 2017, 5:49 p.m. OK Java 8 TESTS 80 140 0 1500
27830927 kunal_khatri B June 16, 2017, 6:01 p.m. OK Java 8 TESTS 80 140 0 1500
55726270 vaibhavpulastya B June 18, 2019, 5:55 p.m. OK Java 8 TESTS 80 140 0 1500
27840715 Ahmad_Elsagheer B June 17, 2017, 7:51 a.m. OK Java 8 TESTS 80 140 2048000 1500
45503773 Skndr801 B Nov. 10, 2018, 9:10 a.m. OK Mono C# TESTS 80 78 11878400 1500
27799262 mban259 B June 15, 2017, 3:32 p.m. OK Mono C# TESTS 80 93 14848000 1500
27798341 og.kostya B June 15, 2017, 3:24 p.m. OK MS C# TESTS 80 46 307200 1500
28274477 pro100skm B July 4, 2017, 7:56 a.m. OK MS C# TESTS 80 78 20377600 1500
27813269 zazak B June 15, 2017, 10:53 p.m. OK MS C# TESTS 80 92 14848000 1500
27802630 artsin666 B June 15, 2017, 4:08 p.m. OK MS C# TESTS 80 93 14336000 1500
27799944 renadeen B June 15, 2017, 3:38 p.m. OK MS C# TESTS 80 93 14950400 1500
28005138 Sorryforpartyrocking B June 24, 2017, 12:29 p.m. OK MS C# TESTS 80 109 39526400 1500
27846730 cTrL B June 17, 2017, 1:26 p.m. OK MS C++ TESTS 80 31 102400 1500
27799256 nikvas B June 15, 2017, 3:32 p.m. OK MS C++ TESTS 80 31 512000 1500
27799542 LazyCharlie B June 15, 2017, 3:34 p.m. OK MS C++ TESTS 80 31 512000 1500
27877471 _AjReme_ B June 18, 2017, 5:56 a.m. OK MS C++ TESTS 80 31 512000 1500
27845834 mariapro B June 17, 2017, 12:33 p.m. OK MS C++ TESTS 80 31 921600 1500
27800207 Player1_SERG B June 15, 2017, 3:41 p.m. OK MS C++ TESTS 80 31 2048000 1500
29088555 vjudge1 B Aug. 1, 2017, 5:36 a.m. OK MS C++ TESTS 80 31 2457600 1500
29093669 vjudge4 B Aug. 1, 2017, 8:53 a.m. OK MS C++ TESTS 80 31 2457600 1500
28031175 1627405131_ws B June 25, 2017, 3:32 p.m. OK MS C++ TESTS 80 31 2457600 1500
28746149 wunian B July 21, 2017, 9:25 a.m. OK MS C++ TESTS 80 31 10137600 1500
50812499 liuhb B March 5, 2019, 9:37 a.m. OK MS C++ 2017 TESTS 80 61 0 1500
69912259 cursed B Jan. 31, 2020, 3:43 p.m. OK MS C++ 2017 TESTS 80 61 409600 1500
69912279 vjudge5 B Jan. 31, 2020, 3:44 p.m. OK MS C++ 2017 TESTS 80 62 409600 1500
69906348 vjudge5 B Jan. 31, 2020, 2:14 p.m. OK MS C++ 2017 TESTS 80 62 3993600 1500
66392618 Mad112233 B Dec. 6, 2019, 9:37 a.m. OK MS C++ 2017 TESTS 80 139 3584000 1500
62634462 Phantom_ B Oct. 15, 2019, 4:25 p.m. OK MS C++ 2017 TESTS 80 155 4096000 1500
27811360 mayakin B June 15, 2017, 8:32 p.m. OK PHP TESTS 80 202 7884800 1500
27834951 saathvik782 B June 16, 2017, 11:49 p.m. OK PyPy 2 TESTS 80 93 7884800 1500
27819137 sragavan B June 16, 2017, 7:15 a.m. OK PyPy 2 TESTS 80 93 7884800 1500
27800773 sid_m97 B June 15, 2017, 3:47 p.m. OK PyPy 2 TESTS 80 93 7884800 1500
27906170 andreamaf B June 19, 2017, 1:58 p.m. OK PyPy 2 TESTS 80 109 7987200 1500
32536860 susg B Nov. 21, 2017, 10:14 p.m. OK PyPy 2 TESTS 80 109 8089600 1500
27818799 Trunks B June 16, 2017, 6:52 a.m. OK PyPy 2 TESTS 80 109 8089600 1500
40557557 aeternalis1 B July 19, 2018, 7:36 p.m. OK PyPy 2 TESTS 80 155 8396800 1500
28298589 inscaven B July 5, 2017, 8:13 a.m. OK PyPy 2 TESTS 80 155 29900800 1500
41545116 Onesh0t B Aug. 13, 2018, 3:54 a.m. OK PyPy 2 TESTS 80 171 8089600 1500
27808955 ankitaggarwal011 B June 15, 2017, 6:33 p.m. OK PyPy 2 TESTS 80 1341 11366400 1500
52591528 dead_inside0 B April 11, 2019, 6:03 a.m. OK PyPy 3 TESTS 80 202 15667200 1500
55732048 gaurav17050 B June 18, 2019, 10:33 p.m. OK PyPy 3 TESTS 80 217 16179200 1500
68953643 WA-----Me-----AC B Jan. 16, 2020, 7:02 p.m. OK PyPy 3 TESTS 80 218 10752000 1500
31411420 yugle7 B Oct. 16, 2017, 12:59 p.m. OK PyPy 3 TESTS 80 218 33484800 1500
27998154 Vosatorp B June 24, 2017, 6 a.m. OK PyPy 3 TESTS 80 218 33689600 1500
28180194 i4gotmylunchih B June 30, 2017, 8:53 p.m. OK PyPy 3 TESTS 80 218 34304000 1500
67174293 PS41 B Dec. 18, 2019, 6:32 p.m. OK PyPy 3 TESTS 80 249 10956800 1500
27801485 Naoki_M B June 15, 2017, 3:54 p.m. OK PyPy 3 TESTS 80 249 10956800 1500
59624570 Sevlll B Aug. 28, 2019, 3:25 p.m. OK PyPy 3 TESTS 80 249 11673600 1500
66571283 shiv1470 B Dec. 10, 2019, 4:43 a.m. OK PyPy 3 TESTS 80 249 15257600 1500
27817457 nealzane B June 16, 2017, 5:19 a.m. OK Python 2 TESTS 80 109 5632000 1500
27838545 k1e13 B June 17, 2017, 5:50 a.m. OK Python 2 TESTS 80 124 5632000 1500
27816143 akshesh B June 16, 2017, 3:49 a.m. OK Python 2 TESTS 80 124 5632000 1500
27808859 Shounak B June 15, 2017, 6:29 p.m. OK Python 2 TESTS 80 124 5632000 1500
27805029 mithi100 B June 15, 2017, 4:43 p.m. OK Python 2 TESTS 80 124 5632000 1500
27801945 Ferume B June 15, 2017, 4 p.m. OK Python 2 TESTS 80 124 5632000 1500
27799508 shubho B June 15, 2017, 3:34 p.m. OK Python 2 TESTS 80 124 5836800 1500
27844931 Sky_miner B June 17, 2017, 11:41 a.m. OK Python 2 TESTS 80 124 6451200 1500
27797682 JaniceV B June 15, 2017, 3:18 p.m. OK Python 2 TESTS 80 124 6451200 1500
32289217 isgulkov B Nov. 13, 2017, 4:19 p.m. OK Python 2 TESTS 80 139 5632000 1500
27924627 ccw630 B June 20, 2017, 12:12 p.m. OK Python 3 TESTS 80 109 8806400 1500
27891788 infiniteturtle B June 18, 2017, 10:03 p.m. OK Python 3 TESTS 80 109 8806400 1500
27825988 thelastprime B June 16, 2017, 1:22 p.m. OK Python 3 TESTS 80 109 8806400 1500
27921406 andha_coder B June 20, 2017, 9:21 a.m. OK Python 3 TESTS 80 109 9011200 1500
27921561 Alina_Drofa B June 20, 2017, 9:29 a.m. OK Python 3 TESTS 80 109 9113600 1500
27832120 divijdude B June 16, 2017, 7:24 p.m. OK Python 3 TESTS 80 109 9113600 1500
27827382 IgorSmirnov B June 16, 2017, 2:29 p.m. OK Python 3 TESTS 80 109 9113600 1500
27824979 arpit040199 B June 16, 2017, 12:36 p.m. OK Python 3 TESTS 80 109 9113600 1500
27800805 lelius B June 15, 2017, 3:47 p.m. OK Python 3 TESTS 80 109 9113600 1500
27800790 ssor96 B June 15, 2017, 3:47 p.m. OK Python 3 TESTS 80 109 9113600 1500
28138019 Hankai B June 29, 2017, 11:21 a.m. OK Ruby TESTS 80 233 24678400 1500
27967209 mai B June 22, 2017, 2:20 p.m. OK Ruby TESTS 80 670 27852800 1500
27841553 sumoru B June 17, 2017, 8:36 a.m. OK Rust TESTS 80 62 6656000 1500
27843596 Capture_A_Lag B June 17, 2017, 10:16 a.m. OK Scala TESTS 80 405 7270400 1500
27837522 nicekingwei B June 17, 2017, 4:20 a.m. OK Scala TESTS 80 483 0 1500

remove filters

Back to search problems