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
( 15239 ) C Kuroni and Impossible Calculation PROGRAMMING brute force combinatorics math number theory 1600

B'To become the king of Codeforces, Kuroni has to solve the following problem. He is given n numbers a_1, a_2, ... , a_n . Help Kuroni to calculate prod_{1 <= i<j <= n} |a_i - a_j| . As result can be very big, output it modulo m . If you are not familiar with short notation, prod_{1 <= i<j <= n} |a_i - a_j| is equal to |a_1 - a_2| cdot|a_1 - a_3| cdot ... cdot|a_1 - a_n| cdot|a_2 - a_3| cdot|a_2 - a_4| cdot ... cdot|a_2 - a_n| cdot ... cdot |a_{n-1} - a_n| . In other words, this is the product of |a_i - a_j| for all 1 <= i < j <= n . The first line contains two integers n , m ( 2 <= n <= 2 cdot 10^5 , 1 <= m <= 1000 ) -- number of numbers and modulo. The second line contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 10^9 ). Output the single number -- prod_{1 <= i<j <= n} |a_i - a_j| bmod m . In the first sample, |8 - 5| = 3 equiv 3 bmod 10 . In the second sample, |1 - 4| cdot|1 - 5| cdot|4 - 5| = 3 cdot 4 cdot 1 = 12 equiv 0 bmod 12 . In the third sample, |1 - 4| cdot|1 - 9| cdot|4 - 9| = 3 cdot 8 cdot 5 = 120 equiv 1 bmod 7 . '...

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
72401939 defntvdm C March 4, 2020, 9:32 a.m. OK Clang++17 Diagnostics TESTS 58 93 1024000 1600
72401178 defntvdm C March 4, 2020, 9:20 a.m. OK Clang++17 Diagnostics TESTS 58 967 1024000 1600
72401417 defntvdm C March 4, 2020, 9:23 a.m. OK Clang++17 Diagnostics TESTS 58 982 1024000 1600
72333721 avm C March 3, 2020, 3:32 p.m. OK D TESTS 58 358 25292800 1600
72360868 ruban C March 3, 2020, 6:15 p.m. OK Delphi TESTS 58 124 31334400 1600
72361375 ruban C March 3, 2020, 6:18 p.m. OK Delphi TESTS 58 140 31334400 1600
72356527 PAG C March 3, 2020, 4:47 p.m. OK FPC TESTS 58 46 0 1600
72361226 ruban C March 3, 2020, 6:17 p.m. OK FPC TESTS 58 77 31334400 1600
72556955 StelaYuri C March 6, 2020, 7:10 a.m. OK GNU C11 TESTS 58 31 0 1600
72370821 flayer_hunter C March 3, 2020, 8:33 p.m. OK GNU C11 TESTS 58 31 102400 1600
72348286 jschr C March 3, 2020, 4:22 p.m. OK GNU C11 TESTS 58 31 819200 1600
72365129 SUNNY24 C March 3, 2020, 6:55 p.m. OK GNU C11 TESTS 58 31 1638400 1600
72583501 uchihadmali C March 6, 2020, 3:19 p.m. OK GNU C11 TESTS 58 46 819200 1600
72371575 rkguptagkp462 C March 3, 2020, 8:51 p.m. OK GNU C11 TESTS 58 46 819200 1600
72560791 ahsanjarif6 C March 6, 2020, 8:41 a.m. OK GNU C11 TESTS 58 46 819200 1600
72372164 flayer_hunter C March 3, 2020, 9:06 p.m. OK GNU C11 TESTS 58 46 1638400 1600
72342950 lyjgod C March 3, 2020, 4:03 p.m. OK GNU C11 TESTS 58 46 1638400 1600
72421163 chowdhuryshashwoto C March 4, 2020, 2:27 p.m. OK GNU C11 TESTS 58 61 819200 1600
72506413 njwrz C March 5, 2020, 11:23 a.m. OK GNU C++11 TESTS 58 31 0 1600
72424600 Great_wall C March 4, 2020, 2:39 p.m. OK GNU C++11 TESTS 58 31 0 1600
72417488 mavc C March 4, 2020, 1:37 p.m. OK GNU C++11 TESTS 58 31 0 1600
72543127 c-deguzman C March 5, 2020, 11:06 p.m. OK GNU C++11 TESTS 58 31 0 1600
72546282 pyf C March 6, 2020, 1:54 a.m. OK GNU C++11 TESTS 58 31 0 1600
72553816 WYXkk C March 6, 2020, 5:57 a.m. OK GNU C++11 TESTS 58 31 0 1600
72574193 saiful_alam41 C March 6, 2020, 12:57 p.m. OK GNU C++11 TESTS 58 31 0 1600
72601976 poyka C March 6, 2020, 8:15 p.m. OK GNU C++11 TESTS 58 31 0 1600
72520491 wrong_verdict C March 5, 2020, 2:53 p.m. OK GNU C++11 TESTS 58 31 0 1600
72513576 12345QWER C March 5, 2020, 1:10 p.m. OK GNU C++11 TESTS 58 31 0 1600
72415140 rk_98 C March 4, 2020, 1:05 p.m. OK GNU C++14 TESTS 58 30 0 1600
72372630 naman_jain_2202 C March 3, 2020, 9:19 p.m. OK GNU C++14 TESTS 58 30 0 1600
72382112 Devam_1310 C March 4, 2020, 2:03 a.m. OK GNU C++14 TESTS 58 30 0 1600
72328628 KalasLavas C March 3, 2020, 3:16 p.m. OK GNU C++14 TESTS 58 30 0 1600
72602456 Reem7Gh C March 6, 2020, 8:27 p.m. OK GNU C++14 TESTS 58 31 0 1600
72594138 Rickie C March 6, 2020, 6:03 p.m. OK GNU C++14 TESTS 58 31 0 1600
72581073 nandonathaniel C March 6, 2020, 2:40 p.m. OK GNU C++14 TESTS 58 31 0 1600
72575608 AsilenceBTF C March 6, 2020, 1:18 p.m. OK GNU C++14 TESTS 58 31 0 1600
72571994 arktan763 C March 6, 2020, 12:20 p.m. OK GNU C++14 TESTS 58 31 0 1600
72550407 yogesh1799 C March 6, 2020, 4:25 a.m. OK GNU C++14 TESTS 58 31 0 1600
72400402 Mavzes C March 4, 2020, 9:06 a.m. OK GNU C++17 TESTS 58 30 0 1600
72368875 Wolve_rine C March 3, 2020, 7:55 p.m. OK GNU C++17 TESTS 58 30 0 1600
72367193 Spacekiddx C March 3, 2020, 7:27 p.m. OK GNU C++17 TESTS 58 30 0 1600
72367146 ZaZabor C March 3, 2020, 7:26 p.m. OK GNU C++17 TESTS 58 30 0 1600
72331331 HaheenakYaRashad C March 3, 2020, 3:24 p.m. OK GNU C++17 TESTS 58 30 819200 1600
72582577 Frag_er C March 6, 2020, 3:04 p.m. OK GNU C++17 TESTS 58 31 0 1600
72570928 Dx18 C March 6, 2020, 12:03 p.m. OK GNU C++17 TESTS 58 31 0 1600
72577191 seekluna_xrc C March 6, 2020, 1:40 p.m. OK GNU C++17 TESTS 58 31 0 1600
72587923 vjudge2 C March 6, 2020, 4:32 p.m. OK GNU C++17 TESTS 58 31 0 1600
72585018 WindCry1 C March 6, 2020, 3:44 p.m. OK GNU C++17 TESTS 58 31 0 1600
72342314 Jughead C March 3, 2020, 4 p.m. OK Go TESTS 58 61 4505600 1600
72336476 snow_bear_328 C March 3, 2020, 3:40 p.m. OK Go TESTS 58 62 9728000 1600
72367503 fc-lib-xyz C March 3, 2020, 7:32 p.m. OK Go TESTS 58 77 4505600 1600
72383368 iHackSubhodip C March 4, 2020, 2:41 a.m. OK Go TESTS 58 78 4505600 1600
72351122 j31d0 C March 3, 2020, 4:32 p.m. OK Haskell TESTS 58 530 33689600 1600
72383287 bleh0.5 C March 4, 2020, 2:39 a.m. OK Java 11 TESTS 58 187 0 1600
72369847 jenish9599 C March 3, 2020, 8:14 p.m. OK Java 11 TESTS 58 187 0 1600
72368389 jenish9599 C March 3, 2020, 7:47 p.m. OK Java 11 TESTS 58 187 0 1600
72361978 GiantTornado C March 3, 2020, 6:22 p.m. OK Java 11 TESTS 58 202 0 1600
72475799 DATVN C March 4, 2020, 10:25 p.m. OK Java 11 TESTS 58 202 0 1600
72389028 Azakarka C March 4, 2020, 5:26 a.m. OK Java 11 TESTS 58 202 0 1600
72334470 sf14t C March 3, 2020, 3:34 p.m. OK Java 11 TESTS 58 202 0 1600
72335985 jenish9599 C March 3, 2020, 3:39 p.m. OK Java 11 TESTS 58 217 0 1600
72393997 abhi123valani C March 4, 2020, 7:06 a.m. OK Java 11 TESTS 58 218 0 1600
72383744 Piccadilly C March 4, 2020, 2:52 a.m. OK Java 11 TESTS 58 218 0 1600
72408873 bluesky111 C March 4, 2020, 11:32 a.m. OK Java 8 TESTS 58 124 0 1600
72400373 pulkit14 C March 4, 2020, 9:05 a.m. OK Java 8 TESTS 58 124 0 1600
72391438 nalin_1000101 C March 4, 2020, 6:20 a.m. OK Java 8 TESTS 58 124 0 1600
72389642 hushojin C March 4, 2020, 5:42 a.m. OK Java 8 TESTS 58 124 0 1600
72383239 _IAm_PM_ C March 4, 2020, 2:38 a.m. OK Java 8 TESTS 58 124 0 1600
72381881 ijxjdjd C March 4, 2020, 1:56 a.m. OK Java 8 TESTS 58 124 0 1600
72368397 johnny16 C March 3, 2020, 7:47 p.m. OK Java 8 TESTS 58 124 0 1600
72366861 i9i9i9i9 C March 3, 2020, 7:21 p.m. OK Java 8 TESTS 58 124 0 1600
72365707 1u_my_light C March 3, 2020, 7:03 p.m. OK Java 8 TESTS 58 124 0 1600
72365313 Ya5h C March 3, 2020, 6:58 p.m. OK Java 8 TESTS 58 124 0 1600
72401691 walborn C March 4, 2020, 9:28 a.m. OK JavaScript TESTS 58 108 21708800 1600
72477341 GTrigger C March 4, 2020, 11:26 p.m. OK JavaScript TESTS 58 124 21708800 1600
72351622 iskander.samerkhanov C March 3, 2020, 4:33 p.m. OK JavaScript TESTS 58 187 16793600 1600
72387372 Spheniscine C March 4, 2020, 4:40 a.m. OK Kotlin TESTS 58 155 4505600 1600
72378660 0xCAFB C March 3, 2020, 11:48 p.m. OK Kotlin TESTS 58 170 1228800 1600
72387410 Spheniscine C March 4, 2020, 4:41 a.m. OK Kotlin TESTS 58 171 4505600 1600
72328484 yakamoto C March 3, 2020, 3:15 p.m. OK Kotlin TESTS 58 202 5222400 1600
72332307 SlavaG C March 3, 2020, 3:27 p.m. OK Kotlin TESTS 58 233 17817600 1600
72342594 songsinger C March 3, 2020, 4:01 p.m. OK Kotlin TESTS 58 374 15564800 1600
72330941 mr.varga C March 3, 2020, 3:23 p.m. OK Kotlin TESTS 58 374 17203200 1600
72336987 jonas.havelka.42 C March 3, 2020, 3:42 p.m. OK Kotlin TESTS 58 405 18227200 1600
72337654 Denzed C March 3, 2020, 3:44 p.m. OK Kotlin TESTS 58 405 19148800 1600
72371262 darnley C March 3, 2020, 8:43 p.m. OK Kotlin TESTS 58 436 18227200 1600
72331540 hibatibati C March 3, 2020, 3:24 p.m. OK Mono C# TESTS 58 93 3788800 1600
72402951 ansergeyg C March 4, 2020, 9:49 a.m. OK Mono C# TESTS 58 124 19660800 1600
72333099 plasma-effect C March 3, 2020, 3:29 p.m. OK Mono C# TESTS 58 124 28569600 1600
72580038 artworks C March 6, 2020, 2:24 p.m. OK Mono C# TESTS 58 139 26624000 1600
72388156 shy3205 C March 4, 2020, 5:02 a.m. OK Mono C# TESTS 58 140 24678400 1600
72338797 mban259 C March 3, 2020, 3:48 p.m. OK Mono C# TESTS 58 202 25395200 1600
72420504 tudosa.bogdan C March 4, 2020, 2:17 p.m. OK MS C++ TESTS 58 31 819200 1600
72379209 vjudge5 C March 4, 2020, 12:13 a.m. OK MS C++ TESTS 58 46 819200 1600
72341550 nagisa-kun C March 3, 2020, 3:58 p.m. OK MS C++ TESTS 58 46 1638400 1600
72335363 Hello_World3 C March 3, 2020, 3:37 p.m. OK MS C++ TESTS 58 46 1638400 1600
72490310 vjudge3 C March 5, 2020, 6:25 a.m. OK MS C++ TESTS 58 61 819200 1600
72493220 vjudge4 C March 5, 2020, 7:29 a.m. OK MS C++ TESTS 58 61 1638400 1600
72385180 vjudge1 C March 4, 2020, 3:36 a.m. OK MS C++ TESTS 58 61 3993600 1600
72508527 vjudge5 C March 5, 2020, 11:58 a.m. OK MS C++ TESTS 58 171 1638400 1600
72413599 vjudge3 C March 4, 2020, 12:44 p.m. OK MS C++ TESTS 58 186 1638400 1600
72414169 vjudge3 C March 4, 2020, 12:51 p.m. OK MS C++ TESTS 58 187 1638400 1600
72334568 lonely_moon C March 3, 2020, 3:34 p.m. OK MS C++ 2017 TESTS 58 31 0 1600
72339122 Neron C March 3, 2020, 3:49 p.m. OK MS C++ 2017 TESTS 58 31 307200 1600
72362220 Tangerine C March 3, 2020, 6:24 p.m. OK MS C++ 2017 TESTS 58 31 307200 1600
72356292 Tuenjuko C March 3, 2020, 4:47 p.m. OK MS C++ 2017 TESTS 58 31 1638400 1600
72420410 Juney C March 4, 2020, 2:16 p.m. OK MS C++ 2017 TESTS 58 31 1843200 1600
72406592 jdb0ss C March 4, 2020, 10:50 a.m. OK MS C++ 2017 TESTS 58 46 0 1600
72405735 Najmus_Sakib_Rashid C March 4, 2020, 10:35 a.m. OK MS C++ 2017 TESTS 58 46 0 1600
72371030 andrea.morels14 C March 3, 2020, 8:38 p.m. OK MS C++ 2017 TESTS 58 46 307200 1600
72448696 Mitta-Maria C March 4, 2020, 3:52 p.m. OK MS C++ 2017 TESTS 58 46 1024000 1600
72393465 WithYou0919 C March 4, 2020, 6:56 a.m. OK MS C++ 2017 TESTS 58 46 1638400 1600
72387215 Samurai-Abhishek C March 4, 2020, 4:35 a.m. OK Node.js TESTS 58 233 14950400 1600
72489174 shivam1420 C March 5, 2020, 6 a.m. OK Node.js TESTS 58 248 16691200 1600
72362269 denchik007orel57 C March 3, 2020, 6:24 p.m. OK PascalABC.NET TESTS 58 483 102400 1600
72362592 snape_here C March 3, 2020, 6:27 p.m. OK PyPy 2 TESTS 58 171 14643200 1600
72329151 raj1307 C March 3, 2020, 3:17 p.m. OK PyPy 2 TESTS 58 171 15155200 1600
72382283 Mukundan314 C March 4, 2020, 2:08 a.m. OK PyPy 2 TESTS 58 186 13824000 1600
72341188 kabeer27 C March 3, 2020, 3:56 p.m. OK PyPy 2 TESTS 58 202 14950400 1600
72341699 Gaurav1 C March 3, 2020, 3:58 p.m. OK PyPy 2 TESTS 58 202 20070400 1600
72370992 anshuman16423 C March 3, 2020, 8:37 p.m. OK PyPy 2 TESTS 58 234 13209600 1600
72404473 ananth4657 C March 4, 2020, 10:14 a.m. OK PyPy 3 TESTS 58 155 1740800 1600
72362215 thekushalghosh C March 3, 2020, 6:24 p.m. OK PyPy 3 TESTS 58 202 15564800 1600
72338099 lIn_nIl C March 3, 2020, 3:46 p.m. OK PyPy 3 TESTS 58 202 18534400 1600
72332655 siyy C March 3, 2020, 3:28 p.m. OK PyPy 3 TESTS 58 233 17408000 1600
72387017 dcshin C March 4, 2020, 4:29 a.m. OK PyPy 3 TESTS 58 296 15974400 1600
72396582 sanvi_kiit C March 4, 2020, 7:58 a.m. OK PyPy 3 TESTS 58 296 16588800 1600
72409172 Rahul_Anand C March 4, 2020, 11:37 a.m. OK PyPy 3 TESTS 58 296 19046400 1600
72394812 jishnu19048 C March 4, 2020, 7:21 a.m. OK PyPy 3 TESTS 58 296 19046400 1600
72464875 Vladithur C March 4, 2020, 6:36 p.m. OK PyPy 3 TESTS 58 296 19148800 1600
72390447 adityajn105 C March 4, 2020, 5:59 a.m. OK PyPy 3 TESTS 58 296 19148800 1600
72369055 ap1008 C March 3, 2020, 7:59 p.m. OK Python 2 TESTS 58 405 12288000 1600
72381775 ashashwat C March 4, 2020, 1:52 a.m. OK Python 2 TESTS 58 405 13516800 1600
72419295 bertrandovide C March 4, 2020, 2 p.m. OK Python 2 TESTS 58 421 12800000 1600
72419173 bertrandovide C March 4, 2020, 1:59 p.m. OK Python 2 TESTS 58 732 12902400 1600
72376827 ryo_n C March 3, 2020, 10:22 p.m. OK Python 3 TESTS 58 233 16076800 1600
72390912 Arnold_6989 C March 4, 2020, 6:09 a.m. OK Python 3 TESTS 58 249 16691200 1600
72417433 utkarsh73 C March 4, 2020, 1:36 p.m. OK Python 3 TESTS 58 265 16281600 1600
72378041 Tsubo_ C March 3, 2020, 11:16 p.m. OK Python 3 TESTS 58 265 16691200 1600
72333784 r-tron18 C March 3, 2020, 3:32 p.m. OK Python 3 TESTS 58 265 16691200 1600
72352411 graf-m C March 3, 2020, 4:36 p.m. OK Python 3 TESTS 58 280 307200 1600
72335080 9mat C March 3, 2020, 3:36 p.m. OK Python 3 TESTS 58 295 16691200 1600
72393965 gouravchat C March 4, 2020, 7:06 a.m. OK Python 3 TESTS 58 296 16588800 1600
72392244 you1234 C March 4, 2020, 6:34 a.m. OK Python 3 TESTS 58 296 16691200 1600
72394234 m80126colin C March 4, 2020, 7:11 a.m. OK Python 3 TESTS 58 312 16998400 1600
72399046 simanman C March 4, 2020, 8:44 a.m. OK Ruby TESTS 58 327 34406400 1600
72379176 RubenRETM C March 4, 2020, 12:12 a.m. OK Ruby TESTS 58 343 23449600 1600
72348909 quickwshell C March 3, 2020, 4:24 p.m. OK Rust TESTS 58 46 4505600 1600
72334888 rustafarian C March 3, 2020, 3:35 p.m. OK Rust TESTS 58 77 11776000 1600
72372321 TomazGomes C March 3, 2020, 9:10 p.m. OK Rust TESTS 58 77 12595200 1600

remove filters

Back to search problems