Технокубок 2021 - Финал

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
1482 Технокубок 2021 - Финал FINISHED False 10800 121030811 March 21, 2021, 10:20 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9284 ) B Restore Modulo PROGRAMMING implementation math

B'For the first place at the competition, Alex won many arrays of integers and was assured that these arrays are very expensive. After the award ceremony Alex decided to sell them. There is a rule in arrays pawnshop: you can sell array only if it can be compressed to a generator. This generator takes four non-negative numbers n , m , c , s . n and m must be positive, s non-negative and for c it must be true that 0 <= q c < m . The array a of length n is created according to the following rules: For example, if n = 5 , m = 7 , c = 4 , and s = 10 , then a = [3, 0, 4, 1, 5] . Price of such an array is the value of m in this generator. Alex has a question: how much money he can get for each of the arrays. Please, help him to understand for every array whether there exist four numbers n , m , c , s that generate this array. If yes, then maximize m . The first line contains a single integer t ( 1 <= q t <= q 10^5 ) -- the number of arrays. The first line of array description contains a single integer n ( 1 <= q n <= q 10^5 ) -- the size of this array. The second line of array description contains n integers a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 10^9 ) -- elements of the array. It is guaranteed that the sum of array sizes does not exceed 10^5 . For every array print: '...

Tutorials

Technocup 2021: Final Round and Codeforces Round #709 — tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
110780855 CastleBravo B March 23, 2021, 4:31 a.m. OK GNU C11 TESTS 18 46 409600
110717342 Badwin B March 22, 2021, 9:21 a.m. OK GNU C++11 TESTS 18 31 204800
110720364 HuailongHuang B March 22, 2021, 9:58 a.m. OK GNU C++11 TESTS 18 31 409600
110698409 luogu_bot1 B March 22, 2021, 4:49 a.m. OK GNU C++11 TESTS 18 31 819200
110697086 Epiphanyi B March 22, 2021, 4:19 a.m. OK GNU C++11 TESTS 18 46 7782400
110608472 arina.sm B March 21, 2021, 10:42 a.m. OK GNU C++11 TESTS 18 78 819200
110607438 Enkognit B March 21, 2021, 10:31 a.m. OK GNU C++11 TESTS 18 78 7987200
110610725 mostyka B March 21, 2021, 11:01 a.m. OK GNU C++11 TESTS 18 93 1638400
110724123 YareYare B March 22, 2021, 10:45 a.m. OK GNU C++11 TESTS 18 93 24371200
110608706 dorph B March 21, 2021, 10:44 a.m. OK GNU C++11 TESTS 18 108 819200
110614589 DimaTomsk B March 21, 2021, 11:37 a.m. OK GNU C++11 TESTS 18 108 819200
110722217 Indraji7 B March 22, 2021, 10:21 a.m. OK GNU C++14 TESTS 18 46 512000
110608643 goncharovmike B March 21, 2021, 10:43 a.m. OK GNU C++14 TESTS 18 46 819200
110607544 Rwarazor B March 21, 2021, 10:32 a.m. OK GNU C++14 TESTS 18 46 2969600
110609274 uhiaoku B March 21, 2021, 10:49 a.m. OK GNU C++14 TESTS 18 46 2969600
110607255 usachevd0 B March 21, 2021, 10:29 a.m. OK GNU C++14 TESTS 18 61 614400
110613975 drobucs B March 21, 2021, 11:31 a.m. OK GNU C++14 TESTS 18 61 819200
110609227 baby_tape B March 21, 2021, 10:48 a.m. OK GNU C++14 TESTS 18 61 819200
110608430 p3rfect B March 21, 2021, 10:41 a.m. OK GNU C++14 TESTS 18 61 819200
110724274 nks43 B March 22, 2021, 10:47 a.m. OK GNU C++14 TESTS 18 61 819200
110608446 eeestrelok B March 21, 2021, 10:41 a.m. OK GNU C++14 TESTS 18 61 2457600
110613783 VladimirM B March 21, 2021, 11:29 a.m. OK GNU C++17 TESTS 18 46 0
110739547 LetMeFly B March 22, 2021, 1:32 p.m. OK GNU C++17 TESTS 18 46 409600
110724853 noomaK B March 22, 2021, 10:54 a.m. OK GNU C++17 TESTS 18 46 409600
110618358 xyz. B March 21, 2021, 12:13 p.m. OK GNU C++17 TESTS 18 46 409600
110617931 Alexander_Kozhevnikov B March 21, 2021, 12:08 p.m. OK GNU C++17 TESTS 18 46 409600
110614019 snnt B March 21, 2021, 11:31 a.m. OK GNU C++17 TESTS 18 46 409600
110613828 Blueberry13 B March 21, 2021, 11:30 a.m. OK GNU C++17 TESTS 18 46 409600
110611544 AlmadelX B March 21, 2021, 11:08 a.m. OK GNU C++17 TESTS 18 46 409600
110611511 imodre B March 21, 2021, 11:08 a.m. OK GNU C++17 TESTS 18 46 409600
110727137 DR.KOKS B March 22, 2021, 11:19 a.m. OK GNU C++17 TESTS 18 46 409600
110612048 Ainur_Mukhtarow B March 21, 2021, 11:13 a.m. OK GNU C++17 (64) TESTS 18 31 409600
110609647 eviL_cheztor B March 21, 2021, 10:52 a.m. OK GNU C++17 (64) TESTS 18 31 819200
110609258 I_hate_I_love_geom B March 21, 2021, 10:48 a.m. OK GNU C++17 (64) TESTS 18 31 819200
110608394 RUMAZIUS B March 21, 2021, 10:41 a.m. OK GNU C++17 (64) TESTS 18 31 819200
110607853 Arbuzniy_kekich B March 21, 2021, 10:36 a.m. OK GNU C++17 (64) TESTS 18 31 819200
110608503 StickBuerak B March 21, 2021, 10:42 a.m. OK GNU C++17 (64) TESTS 18 31 2457600
110612824 GregTag B March 21, 2021, 11:20 a.m. OK GNU C++17 (64) TESTS 18 46 0
110736341 sans B March 22, 2021, 12:56 p.m. OK GNU C++17 (64) TESTS 18 46 409600
110736194 sans B March 22, 2021, 12:55 p.m. OK GNU C++17 (64) TESTS 18 46 409600
110736068 sans B March 22, 2021, 12:53 p.m. OK GNU C++17 (64) TESTS 18 46 409600
110614150 Tardimgg B March 21, 2021, 11:32 a.m. OK Java 11 TESTS 18 249 2560000
110690513 bush117 B March 22, 2021, 12:32 a.m. OK Java 8 TESTS 18 139 204800
110693024 ezraft B March 22, 2021, 2:22 a.m. OK Java 8 TESTS 18 140 0
110687822 4mda4mda B March 21, 2021, 10:29 p.m. OK Java 8 TESTS 18 140 0
110609021 Shokersss B March 21, 2021, 10:46 a.m. OK Java 8 TESTS 18 155 0
110624256 Sorqen B March 21, 2021, 1:10 p.m. OK MS C++ 2017 TESTS 18 62 409600
110727987 dingzhao777 B March 22, 2021, 11:28 a.m. OK MS C++ 2017 TESTS 18 62 819200
110608981 teoretik B March 21, 2021, 10:46 a.m. OK MS C++ 2017 TESTS 18 109 819200
110607877 _TheLostDesu_ B March 21, 2021, 10:36 a.m. OK MS C++ 2017 TESTS 18 124 1843200
110611486 a.stepanov281005 B March 21, 2021, 11:08 a.m. OK MS C++ 2017 TESTS 18 139 819200
110609090 egordunaev B March 21, 2021, 10:47 a.m. OK MS C++ 2017 TESTS 18 140 819200
110610573 127.0.0.1. B March 21, 2021, 10:59 a.m. OK MS C++ 2017 TESTS 18 140 1638400
110621406 o-sky B March 21, 2021, 12:43 p.m. OK MS C++ 2017 TESTS 18 156 819200
110609882 NewLul B March 21, 2021, 10:54 a.m. OK MS C++ 2017 TESTS 18 234 819200
110615927 Danny_boy B March 21, 2021, 11:49 a.m. OK MS C++ 2017 TESTS 18 264 819200
110676882 Tedor B March 21, 2021, 5:48 p.m. OK PyPy 3 TESTS 18 312 10444800
110608935 Arsen4ikVar B March 21, 2021, 10:46 a.m. OK PyPy 3 TESTS 18 312 13209600
110610087 myotra B March 21, 2021, 10:55 a.m. OK PyPy 3 TESTS 18 327 10547200
110610968 EzikBro B March 21, 2021, 11:03 a.m. OK PyPy 3 TESTS 18 358 10649600
110610532 ulyabelyaeva B March 21, 2021, 10:59 a.m. OK PyPy 3 TESTS 18 826 11980800
110608937 nexus.chebykin B March 21, 2021, 10:46 a.m. OK PyPy 3 TESTS 18 982 10649600
110740507 MrGlaz B March 22, 2021, 1:43 p.m. OK PyPy 3 TESTS 18 997 10649600
110609454 legion B March 21, 2021, 10:50 a.m. OK PyPy 3 TESTS 18 998 10752000
110692692 imadilkhan B March 22, 2021, 2:09 a.m. OK Python 3 TESTS 18 499 8089600
110772336 abinashstack B March 22, 2021, 10:05 p.m. OK Python 3 TESTS 18 499 8192000
110610350 denshlk B March 21, 2021, 10:58 a.m. OK Python 3 TESTS 18 514 8704000
110608819 klkvr B March 21, 2021, 10:45 a.m. OK Python 3 TESTS 18 530 8499200
110681733 crazyilian B March 21, 2021, 7:03 p.m. OK Python 3 TESTS 18 561 8704000
110613858 qscfthmko147 B March 21, 2021, 11:30 a.m. OK Python 3 TESTS 18 607 8089600

remove filters

Back to search problems