Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!)

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
1305 Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) FINISHED False 8100 154106711 March 3, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2757 ) F Kuroni and the Punishment PROGRAMMING math number theory probabilities 2500

B"Kuroni is very angry at the other setters for using him as a theme! As a punishment, he forced them to solve the following problem: You have an array a consisting of n positive integers. An operation consists of choosing an element and either adding 1 to it or subtracting 1 from it, such that the element remains positive. We say the array is good if the greatest common divisor of all its elements is not 1 . Find the minimum number of operations needed to make the array good. Unable to match Kuroni's intellect, the setters failed to solve the problem. Help them escape from Kuroni's punishment! The first line contains an integer n ( 2 <= n <= 2 cdot 10^5 ) -- the number of elements in the array. The second line contains n integers a_1, a_2, ... , a_n . ( 1 <= a_i <= 10^{12} ) -- the elements of the array. Print a single integer -- the minimum number of operations required to make the array good. In the first example, the first array is already good, since the greatest common divisor of all the elements is 2 . In the second example, we may apply the following operations: The greatest common divisor of all elements will then be equal to 3 , so the array will be good. It can be shown that no sequence of three or less operations can make the array good. "...

Tutorials

Ozon Tech Challenge 2020 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
72496785 Gassa F March 5, 2020, 8:40 a.m. OK D TESTS 204 873 22425600 2500
72541527 quevangel F March 5, 2020, 9:57 p.m. OK D TESTS 209 1388 36249600 2500
72541493 quevangel F March 5, 2020, 9:56 p.m. OK D TESTS 209 1575 36249600 2500
72497640 Gassa F March 5, 2020, 8:55 a.m. OK D TESTS 204 1621 11571200 2500
72542877 quevangel F March 5, 2020, 10:53 p.m. OK D TESTS 209 1855 36249600 2500
72541898 quevangel F March 5, 2020, 10:11 p.m. OK D TESTS 209 1902 36249600 2500
72354316 physics0523 F March 3, 2020, 4:42 p.m. OK GNU C11 TESTS 97 187 13619200 2500
72540869 rainboy F March 5, 2020, 9:35 p.m. OK GNU C11 TESTS 209 858 1638400 2500
72337216 Hazyknight F March 3, 2020, 3:43 p.m. OK GNU C++11 TESTS 97 109 1638400 2500
72356718 Arraiter F March 3, 2020, 4:48 p.m. OK GNU C++11 TESTS 97 124 1638400 2500
72395545 Tima F March 4, 2020, 7:37 a.m. OK GNU C++11 TESTS 110 124 10444800 2500
72353219 Tima F March 3, 2020, 4:38 p.m. OK GNU C++11 TESTS 97 124 10444800 2500
72346983 SKearbvaanl F March 3, 2020, 4:17 p.m. OK GNU C++11 TESTS 97 140 1740800 2500
72484410 memset0c F March 5, 2020, 3:49 a.m. OK GNU C++11 TESTS 199 140 1740800 2500
72351058 Harry_bh F March 3, 2020, 4:32 p.m. OK GNU C++11 TESTS 97 140 4096000 2500
72382745 sshwyR F March 4, 2020, 2:24 a.m. OK GNU C++11 TESTS 107 140 10649600 2500
72415085 Backseat-Stargazer F March 4, 2020, 1:04 p.m. OK GNU C++11 TESTS 139 140 101376000 2500
72362284 ouuan F March 3, 2020, 6:24 p.m. OK GNU C++11 TESTS 99 155 1638400 2500
72378005 koikotya F March 3, 2020, 11:14 p.m. OK GNU C++14 TESTS 107 124 2969600 2500
72417948 KisekiPurin2019 F March 4, 2020, 1:43 p.m. OK GNU C++14 TESTS 140 139 6758400 2500
72418295 KisekiPurin2019 F March 4, 2020, 1:48 p.m. OK GNU C++14 TESTS 142 139 6758400 2500
72368155 21August F March 3, 2020, 7:43 p.m. OK GNU C++14 TESTS 104 140 1740800 2500
72380571 chris2tg F March 4, 2020, 1:09 a.m. OK GNU C++14 TESTS 107 155 3686400 2500
72353215 schtomi97 F March 3, 2020, 4:38 p.m. OK GNU C++14 TESTS 97 155 3686400 2500
72397858 Rogue33 F March 4, 2020, 8:23 a.m. OK GNU C++14 TESTS 113 155 6860800 2500
72338447 ainta F March 3, 2020, 3:47 p.m. OK GNU C++14 TESTS 97 156 6656000 2500
72368033 21August F March 3, 2020, 7:40 p.m. OK GNU C++14 TESTS 104 171 1740800 2500
72549119 luogu_bot2 F March 6, 2020, 3:47 a.m. OK GNU C++14 TESTS 210 171 1843200 2500
72529150 neal F March 5, 2020, 5:17 p.m. OK GNU C++17 TESTS 208 77 1740800 2500
72529043 neal F March 5, 2020, 5:15 p.m. OK GNU C++17 TESTS 208 77 1740800 2500
72474437 neal F March 4, 2020, 9:37 p.m. OK GNU C++17 TESTS 195 77 3276800 2500
72474487 neal F March 4, 2020, 9:39 p.m. OK GNU C++17 TESTS 195 77 3276800 2500
72528434 neal F March 5, 2020, 5:05 p.m. OK GNU C++17 TESTS 208 78 1740800 2500
72528368 neal F March 5, 2020, 5:04 p.m. OK GNU C++17 TESTS 208 93 1740800 2500
72473883 neal F March 4, 2020, 9:20 p.m. OK GNU C++17 TESTS 195 93 1843200 2500
72473376 neal F March 4, 2020, 9:06 p.m. OK GNU C++17 TESTS 192 93 6451200 2500
72585894 MathAlex F March 6, 2020, 3:58 p.m. OK GNU C++17 TESTS 216 124 1740800 2500
72395772 chenkuowen F March 4, 2020, 7:42 a.m. OK GNU C++17 TESTS 111 124 3788800 2500
72376867 Jughead F March 3, 2020, 10:23 p.m. OK Go TESTS 106 1575 4608000 2500
72346045 uwi F March 3, 2020, 4:14 p.m. OK Java 11 TESTS 97 280 0 2500
72345495 eatmore F March 3, 2020, 4:12 p.m. OK Java 11 TESTS 97 312 5324800 2500
72386952 rs9 F March 4, 2020, 4:27 a.m. OK Java 11 TESTS 107 608 0 2500
72360928 mikit F March 3, 2020, 6:15 p.m. OK Java 11 TESTS 97 764 4198400 2500
72365871 Akikaze F March 3, 2020, 7:06 p.m. OK Java 8 TESTS 104 732 1945600 2500
72573381 aman28rwt F March 6, 2020, 12:44 p.m. OK Java 8 TESTS 214 763 0 2500
72400518 polyakoff F March 4, 2020, 9:08 a.m. OK Java 8 TESTS 120 1044 13414400 2500
72368751 MagentaCobra F March 3, 2020, 7:53 p.m. OK Java 8 TESTS 104 1231 13312000 2500
72383259 gouh9qn F March 4, 2020, 2:38 a.m. OK Java 8 TESTS 107 1512 13312000 2500
72395147 xwchen F March 4, 2020, 7:28 a.m. OK Java 8 TESTS 110 1887 13312000 2500
72386779 ijxjdjd F March 4, 2020, 4:22 a.m. OK Java 8 TESTS 107 1918 13516800 2500
72361744 fetetriste F March 3, 2020, 6:20 p.m. OK Java 8 TESTS 99 2121 13721600 2500
72364682 MagentaCobra F March 3, 2020, 6:50 p.m. OK Java 8 TESTS 103 2183 13312000 2500
72342012 cwise F March 3, 2020, 3:59 p.m. OK Java 8 TESTS 97 2198 20480000 2500
72583099 Spheniscine F March 6, 2020, 3:12 p.m. OK Kotlin TESTS 216 343 15257600 2500
72583286 Spheniscine F March 6, 2020, 3:15 p.m. OK Kotlin TESTS 216 420 15257600 2500
72345449 darnley F March 3, 2020, 4:12 p.m. OK Kotlin TESTS 97 1606 19763200 2500
72376472 darnley F March 3, 2020, 10:09 p.m. OK Kotlin TESTS 106 2277 21196800 2500
72373773 darnley F March 3, 2020, 9:55 p.m. OK Kotlin TESTS 106 2292 19763200 2500
72376363 darnley F March 3, 2020, 10:05 p.m. OK Kotlin TESTS 106 2448 23859200 2500
72364823 Tlatoani F March 3, 2020, 6:52 p.m. OK Kotlin TESTS 103 2496 58880000 2500
72608918 IgorYevchynets F March 7, 2020, 1:08 a.m. OK Mono C# TESTS 216 234 37785600 2500
72608896 IgorYevchynets F March 7, 2020, 1:07 a.m. OK Mono C# TESTS 216 405 39424000 2500
72427760 vjudge2 F March 4, 2020, 2:44 p.m. OK MS C++ TESTS 142 1372 1638400 2500
72431797 vjudge5 F March 4, 2020, 2:54 p.m. OK MS C++ TESTS 142 1372 1638400 2500
72367358 Gravekper F March 3, 2020, 7:30 p.m. OK MS C++ 2017 TESTS 104 280 1843200 2500
72509402 serg3000 F March 5, 2020, 12:11 p.m. OK MS C++ 2017 TESTS 206 374 11776000 2500
72398068 AleksanderBalobanov F March 4, 2020, 8:26 a.m. OK MS C++ 2017 TESTS 115 592 3686400 2500
72509278 serg3000 F March 5, 2020, 12:10 p.m. OK MS C++ 2017 TESTS 206 1075 11673600 2500
72360777 pichulia F March 3, 2020, 6:15 p.m. OK MS C++ 2017 TESTS 97 1123 13312000 2500
72503542 Alexandr_TS F March 5, 2020, 10:33 a.m. OK MS C++ 2017 TESTS 204 1466 1843200 2500
72335622 gnomina007 F March 3, 2020, 3:38 p.m. OK MS C++ 2017 TESTS 97 2245 10752000 2500
72368168 alexwice F March 3, 2020, 7:43 p.m. OK PyPy 2 TESTS 104 1825 25702400 2500
72383488 throwawayatcoder F March 4, 2020, 2:45 a.m. OK PyPy 3 TESTS 107 998 29593600 2500
72330500 conqueror_of_tourist F March 3, 2020, 3:21 p.m. OK PyPy 3 TESTS 97 1200 30003200 2500
72350998 Kiri8128 F March 3, 2020, 4:31 p.m. OK PyPy 3 TESTS 97 1450 29081600 2500
72368934 alexwice F March 3, 2020, 7:56 p.m. OK PyPy 3 TESTS 104 1559 29900800 2500
72399090 malylesio F March 4, 2020, 8:45 a.m. OK PyPy 3 TESTS 117 1669 36659200 2500
72355179 titia F March 3, 2020, 4:44 p.m. OK PyPy 3 TESTS 97 2043 39219200 2500
72398992 malylesio F March 4, 2020, 8:43 a.m. OK PyPy 3 TESTS 115 2090 36659200 2500
72368669 alexwice F March 3, 2020, 7:51 p.m. OK PyPy 3 TESTS 104 2183 29900800 2500
72365967 Akikaze F March 3, 2020, 7:07 p.m. OK PyPy 3 TESTS 104 2198 35430400 2500
72556353 sairam1298 F March 6, 2020, 6:56 a.m. OK PyPy 3 TESTS 212 2230 35430400 2500
72361054 sansen F March 3, 2020, 6:16 p.m. OK Rust TESTS 98 1669 6348800 2500

remove filters

Back to search problems