Educational Codeforces Round 11

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
660 Educational Codeforces Round 11 FINISHED False 7200 277311587 April 8, 2016, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9176 ) A Co-prime Array PROGRAMMING greedy implementation math number theory #lucky division 1300

B'You are given an array of n elements, you must make it a co-prime array in as few moves as possible. In each move you can insert any positive integral number you want not greater than 109 in any place in the array. An array is co-prime if any two adjacent numbers of it are co-prime. In the number theory, two integers a and b are said to be co-prime if the only positive integer that divides both of them is 1. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) -- the number of elements in the given array. The second line contains n integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the elements of the array a. Print integer k on the first line -- the least number of elements needed to add to the array a to make it co-prime. The second line should contain n xe2 x80 x89+ xe2 x80 x89k integers aj -- the elements of the array a after adding k elements to it. Note that the new array should be co-prime, so any two adjacent values should be co-prime. Also the new array should be got from the original array a by adding k elements to it. If there are multiple answers you can print any one of them. '...

Tutorials

Editorial of Educational Codeforces Round 11

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
17236677 daniil-eshkin A April 8, 2016, 3:53 p.m. OK Delphi TESTS 93 15 2764800 1300
17330124 ruban A April 15, 2016, 5:43 p.m. OK Delphi TESTS 93 31 20889600 1300
19306869 Shirone A July 21, 2016, 5:33 p.m. OK FPC TESTS 93 15 0 1300
22200674 WalkingDeade A Nov. 13, 2016, 11:21 p.m. OK FPC TESTS 93 15 0 1300
30756373 HsOH A Sept. 26, 2017, 4:09 p.m. OK FPC TESTS 93 15 102400 1300
27116837 The_Winners A May 15, 2017, 7:07 a.m. OK FPC TESTS 93 15 819200 1300
17232367 thienanh1999 A April 8, 2016, 3:10 p.m. OK FPC TESTS 93 15 1740800 1300
17239819 demao A April 8, 2016, 4:38 p.m. OK FPC TESTS 93 15 1740800 1300
17254166 k2nt A April 9, 2016, 3:24 p.m. OK FPC TESTS 93 15 1740800 1300
17389515 0lkeh A April 19, 2016, 4 p.m. OK FPC TESTS 93 15 1740800 1300
17234345 Ekaterina_Saenko A April 8, 2016, 3:28 p.m. OK FPC TESTS 93 15 1740800 1300
17242906 wilson182 A April 8, 2016, 6:20 p.m. OK FPC TESTS 93 15 1740800 1300
38456195 sanchit17 A May 20, 2018, 10:48 a.m. OK GNU C TESTS 93 15 0 1300
21883347 Nicopi A Oct. 29, 2016, 9:29 p.m. OK GNU C TESTS 93 15 0 1300
21882880 recursanding A Oct. 29, 2016, 8:49 p.m. OK GNU C TESTS 93 15 0 1300
21877342 BlueSword A Oct. 29, 2016, 5:25 p.m. OK GNU C TESTS 93 15 0 1300
21875725 waldojr A Oct. 29, 2016, 4:01 p.m. OK GNU C TESTS 93 15 0 1300
21870457 Ragnar_Specter A Oct. 29, 2016, 11:39 a.m. OK GNU C TESTS 93 15 0 1300
21829130 marcelopypy A Oct. 27, 2016, 4:34 p.m. OK GNU C TESTS 93 15 0 1300
21809587 joss3 A Oct. 26, 2016, 11:34 p.m. OK GNU C TESTS 93 15 0 1300
21805417 nataliacardozo A Oct. 26, 2016, 7:04 p.m. OK GNU C TESTS 93 15 0 1300
21800500 LuisPerez A Oct. 26, 2016, 4:27 p.m. OK GNU C TESTS 93 15 0 1300
32535101 gurpreet_ait A Nov. 21, 2017, 8:19 p.m. OK GNU C++ TESTS 93 15 0 1300
29697387 vjudge3 A Aug. 23, 2017, 3:58 a.m. OK GNU C++ TESTS 93 15 0 1300
27721492 vjudge2 A June 11, 2017, 1:16 p.m. OK GNU C++ TESTS 93 15 0 1300
27721309 vjudge5 A June 11, 2017, 1:03 p.m. OK GNU C++ TESTS 93 15 0 1300
27719803 vjudge3 A June 11, 2017, 11:09 a.m. OK GNU C++ TESTS 93 15 0 1300
27630175 devbishnoi A June 7, 2017, 10:17 a.m. OK GNU C++ TESTS 93 15 0 1300
27441906 vjudge3 A May 30, 2017, 7:14 a.m. OK GNU C++ TESTS 93 15 0 1300
27336974 hanylch A May 25, 2017, 12:54 p.m. OK GNU C++ TESTS 93 15 0 1300
27336894 vjudge5 A May 25, 2017, 12:49 p.m. OK GNU C++ TESTS 93 15 0 1300
27336610 vjudge3 A May 25, 2017, 12:38 p.m. OK GNU C++ TESTS 93 15 0 1300
17285133 linhan A April 12, 2016, 2:50 a.m. OK GNU C11 TESTS 93 15 0 1300
21787181 majogrance A Oct. 26, 2016, 5:11 a.m. OK GNU C11 TESTS 93 15 204800 1300
17275946 core2duoe6420 A April 11, 2016, 10:18 a.m. OK GNU C11 TESTS 93 30 0 1300
21784979 hugo14eckert14 A Oct. 26, 2016, 1:25 a.m. OK GNU C11 TESTS 93 30 0 1300
21832152 majogrance A Oct. 27, 2016, 6:42 p.m. OK GNU C11 TESTS 93 30 204800 1300
52290323 kaiboy A April 4, 2019, 12:40 a.m. OK GNU C11 TESTS 93 31 0 1300
18657865 abc10 A June 23, 2016, 6:25 a.m. OK GNU C11 TESTS 93 31 102400 1300
21803544 macrosriv A Oct. 26, 2016, 6:07 p.m. OK GNU C11 TESTS 93 436 204800 1300
29595768 LaughterHouse A Aug. 19, 2017, 10:39 a.m. OK GNU C++11 TESTS 93 15 0 1300
27720166 gwq2017 A June 11, 2017, 11:37 a.m. OK GNU C++11 TESTS 93 15 0 1300
29909430 Mithrandir_14 A Aug. 30, 2017, 6:26 a.m. OK GNU C++11 TESTS 93 15 0 1300
30248551 pedrodelyra A Sept. 10, 2017, 2:48 p.m. OK GNU C++11 TESTS 93 15 0 1300
31036680 st-Firdavs A Oct. 5, 2017, 2:11 p.m. OK GNU C++11 TESTS 93 15 0 1300
31038394 Osama_Alkhodairy A Oct. 5, 2017, 3:07 p.m. OK GNU C++11 TESTS 93 15 0 1300
31158715 FieryPhoenix A Oct. 9, 2017, 4:15 a.m. OK GNU C++11 TESTS 93 15 0 1300
31159300 namesake A Oct. 9, 2017, 5:13 a.m. OK GNU C++11 TESTS 93 15 0 1300
32061673 Eddax A Nov. 4, 2017, 7:06 p.m. OK GNU C++11 TESTS 93 15 0 1300
32533232 Kalam A Nov. 21, 2017, 6:26 p.m. OK GNU C++11 TESTS 93 15 0 1300
32562019 CPX99 A Nov. 22, 2017, 9:26 p.m. OK GNU C++14 TESTS 93 15 0 1300
32504069 quotitquot A Nov. 20, 2017, 3:20 p.m. OK GNU C++14 TESTS 93 15 0 1300
32141089 vjudge1 A Nov. 8, 2017, 1:36 p.m. OK GNU C++14 TESTS 93 15 0 1300
32048111 forester.xxx A Nov. 4, 2017, 9:40 a.m. OK GNU C++14 TESTS 93 15 0 1300
32039511 AreWeRedYet A Nov. 4, 2017, 12:34 a.m. OK GNU C++14 TESTS 93 15 0 1300
32008316 O.S.Mozes A Nov. 3, 2017, 1:20 p.m. OK GNU C++14 TESTS 93 15 0 1300
31895134 carott A Oct. 30, 2017, 1:36 p.m. OK GNU C++14 TESTS 93 15 0 1300
30860936 hnam288 A Sept. 30, 2017, 9:35 a.m. OK GNU C++14 TESTS 93 15 0 1300
30646073 marin.yordanoff A Sept. 23, 2017, 3:15 p.m. OK GNU C++14 TESTS 93 15 0 1300
30554326 Perforator A Sept. 20, 2017, 5:31 p.m. OK GNU C++14 TESTS 93 15 0 1300
49982015 vjudge1 A Feb. 16, 2019, 8:42 a.m. OK GNU C++17 TESTS 93 30 0 1300
46968480 the_elucidator A Dec. 13, 2018, 12:36 p.m. OK GNU C++17 TESTS 93 30 0 1300
39646833 stormtrooper1859 A June 25, 2018, 10:48 a.m. OK GNU C++17 TESTS 93 30 0 1300
46719206 KamilSL A Dec. 7, 2018, 12:34 p.m. OK GNU C++17 TESTS 93 30 0 1300
68301762 vjudge4 A Jan. 6, 2020, 6:59 a.m. OK GNU C++17 TESTS 93 30 102400 1300
46718994 Proventus A Dec. 7, 2018, 12:31 p.m. OK GNU C++17 TESTS 93 30 102400 1300
46719440 NinevskiyKN A Dec. 7, 2018, 12:38 p.m. OK GNU C++17 TESTS 93 30 102400 1300
68085914 FailBetterNextTime A Jan. 2, 2020, 4:13 p.m. OK GNU C++17 TESTS 93 30 102400 1300
68301585 vjudge5 A Jan. 6, 2020, 6:53 a.m. OK GNU C++17 TESTS 93 30 102400 1300
38434021 dendi239 A May 19, 2018, 2:40 p.m. OK GNU C++17 TESTS 93 30 307200 1300
34891125 leon2000.tw A Feb. 3, 2018, 10:06 a.m. OK GNU C++17 Diagnostics TESTS 93 998 102502400 1300
17516644 binhuq A April 26, 2016, 2:59 a.m. OK Go TESTS 93 30 6246400 1300
17386012 sn23581 A April 19, 2016, 11:08 a.m. OK Go TESTS 93 46 5939200 1300
26639559 TarifEzaz A April 24, 2017, 11:57 a.m. OK Go TESTS 93 46 23142400 1300
17238462 slcjordan A April 8, 2016, 4:18 p.m. OK Go TESTS 93 61 6041600 1300
17239031 rohansumant A April 8, 2016, 4:25 p.m. OK Haskell TESTS 93 15 53248000 1300
17237049 amtematem A April 8, 2016, 3:58 p.m. OK Haskell TESTS 93 15 53248000 1300
17235929 nes_in_it A April 8, 2016, 3:45 p.m. OK Haskell TESTS 93 15 53248000 1300
18131942 CyberZHG A May 28, 2016, 1:12 p.m. OK Haskell TESTS 93 15 53452800 1300
19968416 pavel.rosputko A Aug. 19, 2016, 5:34 p.m. OK Haskell TESTS 93 30 44851200 1300
17242164 gdahia A April 8, 2016, 5:39 p.m. OK Haskell TESTS 93 78 53452800 1300
67516580 ankyy_0103 A Dec. 24, 2019, 11:03 a.m. OK Java 11 TESTS 93 187 0 1300
64610585 davisrollman A Nov. 10, 2019, 1:08 a.m. OK Java 11 TESTS 93 187 0 1300
18661177 paresh A June 23, 2016, 10:01 a.m. OK Java 7 TESTS 93 109 0 1300
17322338 maitony A April 15, 2016, 5:14 a.m. OK Java 7 TESTS 93 109 0 1300
17240361 petr11235 A April 8, 2016, 4:47 p.m. OK Java 7 TESTS 93 109 49152000 1300
17257534 IslamSalah A April 9, 2016, 9:56 p.m. OK Java 7 TESTS 93 109 49152000 1300
17256595 shashwat_1996 A April 9, 2016, 7:34 p.m. OK Java 7 TESTS 93 109 49152000 1300
17250500 J1GS4W A April 9, 2016, 9:29 a.m. OK Java 7 TESTS 93 109 49152000 1300
17240462 petr11235 A April 8, 2016, 4:49 p.m. OK Java 7 TESTS 93 109 49152000 1300
17239746 smalex69 A April 8, 2016, 4:36 p.m. OK Java 7 TESTS 93 109 49152000 1300
17238886 petr11235 A April 8, 2016, 4:23 p.m. OK Java 7 TESTS 93 109 49152000 1300
17236862 petr11235 A April 8, 2016, 3:56 p.m. OK Java 7 TESTS 93 109 49152000 1300
27625764 BiIIy A June 7, 2017, 5:33 a.m. OK Java 8 TESTS 93 109 0 1300
59519745 jakejase2 A Aug. 26, 2019, 11:25 a.m. OK Java 8 TESTS 93 109 0 1300
18263658 dwoolley3 A June 6, 2016, 12:21 a.m. OK Java 8 TESTS 93 109 20582400 1300
17238556 Sumeet.Varma A April 8, 2016, 4:19 p.m. OK Java 8 TESTS 93 109 20582400 1300
28947427 FIIAurelian A July 28, 2017, 8:18 a.m. OK Java 8 TESTS 93 109 20582400 1300
25644478 Grand A March 19, 2017, 11:41 a.m. OK Java 8 TESTS 93 109 20787200 1300
61563381 Vaibhav1111 pikapika00 saptarshim A Sept. 30, 2019, 4:20 p.m. OK Java 8 TESTS 93 124 0 1300
58943219 its_aks_ulure A Aug. 17, 2019, 7:49 a.m. OK Java 8 TESTS 93 124 0 1300
62328161 M2lkhalifah A Oct. 10, 2019, 7:22 p.m. OK Java 8 TESTS 93 124 0 1300
62405208 Whiplash99 A Oct. 12, 2019, 8:44 a.m. OK Java 8 TESTS 93 124 0 1300
22994898 JoeBlow A Dec. 15, 2016, 12:59 a.m. OK Kotlin TESTS 93 140 0 1300
33195004 chopik A Dec. 12, 2017, 7:46 p.m. OK Mono C# TESTS 93 61 11878400 1300
17275501 TRR A April 11, 2016, 9:26 a.m. OK Mono C# TESTS 93 62 204800 1300
17260891 Cuellius A April 10, 2016, 7:14 a.m. OK MS C# TESTS 93 62 204800 1300
17322853 Frost78 A April 15, 2016, 6:24 a.m. OK MS C# TESTS 93 62 307200 1300
17251052 zazak A April 9, 2016, 10:21 a.m. OK MS C# TESTS 93 62 9113600 1300
17248169 m.khooryani A April 9, 2016, 5:31 a.m. OK MS C# TESTS 93 62 9318400 1300
17534723 Hamada_ A April 27, 2016, 11:59 a.m. OK MS C# TESTS 93 62 11673600 1300
17234349 RainGrid A April 8, 2016, 3:28 p.m. OK MS C# TESTS 93 62 11878400 1300
17300665 AnatolyTolstobrov A April 13, 2016, 10:38 a.m. OK MS C# TESTS 93 77 409600 1300
17260025 alokyadaviitd A April 10, 2016, 5:16 a.m. OK MS C# TESTS 93 77 2560000 1300
22336434 Mem A Nov. 19, 2016, 7:49 p.m. OK MS C# TESTS 93 77 2662400 1300
17293800 fr0st A April 12, 2016, 6:07 p.m. OK MS C# TESTS 93 77 3993600 1300
17335737 ldbach346 A April 16, 2016, 7:09 a.m. OK MS C++ TESTS 93 15 0 1300
22796339 InstouT94 A Dec. 7, 2016, 7:43 p.m. OK MS C++ TESTS 93 15 0 1300
20836451 vjudge1 A Sept. 23, 2016, 12:03 p.m. OK MS C++ TESTS 93 15 0 1300
19322290 Anaar A July 22, 2016, 11:07 a.m. OK MS C++ TESTS 93 15 0 1300
18896443 jk_qq A July 5, 2016, 8:56 a.m. OK MS C++ TESTS 93 15 0 1300
18750136 vjudge5 A June 27, 2016, 10:20 a.m. OK MS C++ TESTS 93 15 0 1300
17330191 0M1D A April 15, 2016, 5:50 p.m. OK MS C++ TESTS 93 15 0 1300
17299536 HeyZOJian A April 13, 2016, 8:53 a.m. OK MS C++ TESTS 93 15 0 1300
17292171 kingmoshe A April 12, 2016, 4:07 p.m. OK MS C++ TESTS 93 15 0 1300
17288782 rwLovingPP A April 12, 2016, 11:17 a.m. OK MS C++ TESTS 93 15 0 1300
63927823 Mad112233 A Oct. 31, 2019, 1:30 p.m. OK MS C++ 2017 TESTS 93 31 307200 1300
60461527 siwei A Sept. 12, 2019, 8:57 p.m. OK MS C++ 2017 TESTS 93 46 0 1300
65802380 gaya9631 A Nov. 27, 2019, 8:04 a.m. OK MS C++ 2017 TESTS 93 311 307200 1300
17231766 alexey.shchepin A April 8, 2016, 3:03 p.m. OK Ocaml TESTS 93 15 3993600 1300
22125843 Recoder A Nov. 9, 2016, 8:12 a.m. OK PHP TESTS 93 31 512000 1300
45452095 mayakin A Nov. 8, 2018, 4:42 p.m. OK PHP TESTS 93 46 409600 1300
17259462 Eeyore A April 10, 2016, 3:23 a.m. OK PyPy 2 TESTS 93 78 1433600 1300
17259451 Eeyore A April 10, 2016, 3:20 a.m. OK PyPy 2 TESTS 93 78 1433600 1300
17232549 alexander.kolesnikoff A April 8, 2016, 3:12 p.m. OK PyPy 2 TESTS 93 78 23859200 1300
20614676 _hawkins A Sept. 14, 2016, 1:01 p.m. OK PyPy 2 TESTS 93 93 102400 1300
17285063 Butane A April 12, 2016, 2:34 a.m. OK PyPy 2 TESTS 93 93 2969600 1300
17291949 kliner A April 12, 2016, 3:51 p.m. OK PyPy 2 TESTS 93 108 1433600 1300
23483552 ragingbull A Jan. 1, 2017, 12:51 p.m. OK PyPy 2 TESTS 93 124 25907200 1300
17284982 nealzane A April 12, 2016, 2:17 a.m. OK PyPy 2 TESTS 93 139 3481600 1300
17276060 juniorcompressor A April 11, 2016, 10:29 a.m. OK PyPy 2 TESTS 93 171 4915200 1300
18574283 justforlaugh A June 18, 2016, 8:02 a.m. OK PyPy 2 TESTS 93 249 13926400 1300
60712796 kopok2 A Sept. 17, 2019, 9:11 a.m. OK PyPy 3 TESTS 93 140 1536000 1300
56018792 scambret A June 25, 2019, 12:44 a.m. OK PyPy 3 TESTS 93 140 1536000 1300
58797332 insane_n00b A Aug. 14, 2019, 5:51 a.m. OK PyPy 3 TESTS 93 155 2560000 1300
57154272 tchr A July 16, 2019, 4:03 p.m. OK PyPy 3 TESTS 93 156 2662400 1300
58194369 saku7 A Aug. 2, 2019, 10:14 p.m. OK PyPy 3 TESTS 93 156 4403200 1300
65262198 vovik123 A Nov. 17, 2019, 3:26 p.m. OK PyPy 3 TESTS 93 170 2764800 1300
67179760 propashii A Dec. 18, 2019, 9:43 p.m. OK PyPy 3 TESTS 93 186 1740800 1300
26711122 Naoki_M A April 28, 2017, 12:47 a.m. OK PyPy 3 TESTS 93 265 40140800 1300
17231807 SirNickolas A April 8, 2016, 3:04 p.m. OK PyPy 3 TESTS 93 311 39936000 1300
20295368 Remarque A Aug. 31, 2016, 6:41 a.m. OK PyPy 3 TESTS 93 326 16998400 1300
22702761 MatheusBFreitas A Dec. 4, 2016, 11:18 p.m. OK Python 2 TESTS 93 46 0 1300
22613975 ionesio.junior A Nov. 30, 2016, 4:53 a.m. OK Python 2 TESTS 93 46 0 1300
22702996 GersonSales A Dec. 4, 2016, 11:53 p.m. OK Python 2 TESTS 93 61 0 1300
22587036 gabrielm19 A Nov. 28, 2016, 10:13 p.m. OK Python 2 TESTS 93 61 0 1300
17312559 Susil A April 14, 2016, 10:06 a.m. OK Python 2 TESTS 93 61 0 1300
22702813 jose.ferreira A Dec. 4, 2016, 11:27 p.m. OK Python 2 TESTS 93 62 0 1300
22587060 mattheusr A Nov. 28, 2016, 10:16 p.m. OK Python 2 TESTS 93 62 0 1300
22585395 gabrielm19 A Nov. 28, 2016, 9:39 p.m. OK Python 2 TESTS 93 62 0 1300
22578636 gileadekelvin A Nov. 28, 2016, 2:22 p.m. OK Python 2 TESTS 93 62 0 1300
22562234 AndreLopes A Nov. 28, 2016, 12:18 a.m. OK Python 2 TESTS 93 62 0 1300
22611129 Giuseppe A Nov. 29, 2016, 9:56 p.m. OK Python 3 TESTS 93 62 204800 1300
17290143 ving.xia A April 12, 2016, 1:14 p.m. OK Python 3 TESTS 93 62 307200 1300
17267285 ChemJeff A April 10, 2016, 4:16 p.m. OK Python 3 TESTS 93 62 307200 1300
17311375 fourele A April 14, 2016, 7:53 a.m. OK Python 3 TESTS 93 62 409600 1300
29514243 Qumeric A Aug. 16, 2017, 9:04 p.m. OK Python 3 TESTS 93 62 512000 1300
17328392 TeddyMichael A April 15, 2016, 2:42 p.m. OK Python 3 TESTS 93 62 512000 1300
17286493 AlvinMax A April 12, 2016, 7:03 a.m. OK Python 3 TESTS 93 62 512000 1300
17263103 zanoes A April 10, 2016, 10:27 a.m. OK Python 3 TESTS 93 62 512000 1300
25372776 vjudge2 A March 10, 2017, 4:53 a.m. OK Python 3 TESTS 93 62 4812800 1300
18436637 Racsoth A June 13, 2016, 8:14 p.m. OK Python 3 TESTS 93 62 5120000 1300
18648996 redchrom A June 22, 2016, 3:37 p.m. OK Ruby TESTS 93 62 102400 1300
18444523 MoOfMo A June 14, 2016, 6:29 a.m. OK Ruby TESTS 93 62 10956800 1300
35888242 ______M______ A March 3, 2018, 2:18 p.m. OK Ruby TESTS 93 77 6451200 1300
17234048 PanicStation A April 8, 2016, 3:25 p.m. OK Ruby TESTS 93 77 6553600 1300
17256266 cielavenir A April 9, 2016, 6:49 p.m. OK Ruby TESTS 93 92 6656000 1300
17304791 _ShadowSong A April 13, 2016, 4:16 p.m. OK Ruby TESTS 93 93 102400 1300
17257406 reldan A April 9, 2016, 9:30 p.m. OK Scala TESTS 93 467 49152000 1300

remove filters

Back to search problems