CodeTON Round 2 (Div. 1 + Div. 2, Rated, 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
1704 CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 9000 77990063 July 31, 2022, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5110 ) D Magical Array PROGRAMMING constructive algorithms hashing math

B"Eric has an array b of length m , then he generates n additional arrays c_1, c_2, ... , c_n , each of length m , from the array b , by the following way: Initially, c_i = b for every 1 <= i <= n . Eric secretly chooses an integer k (1 <= k <= n) and chooses c_k to be the special array. There are two operations that Eric can perform on an array c_t : Note that Eric can't perform an operation if any element of the array will become less than 0 after that operation. Now, Eric does the following: Lastly, Eric discards the array b . For given arrays c_1, c_2, ... , c_n , your task is to find out the special array, i.e. the value k . Also, you need to find the number of times of operation 2 was used on it. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Description of test cases follows. The first line of each test case contains two integers n and m ( 3 <= q n <= q 10^5 , 7 <= q m <= q 3 cdot 10^5 ) -- the number of arrays given to you, and the length of each array. The next n lines contains m integers each, c_{i,1}, c_{i,2}, ... , c_{i,m} . It is guaranteed that each element of the discarded array b is in the range [0,10^6] , and therefore 0 <= q c_{i,j} <= q 3 cdot 10^{11} for all possible pairs of (i,j) . It is guaranteed that the sum of n cdot m over all test cases does not exceed 10^6 . It is guaranteed that the input is generated according to the procedure above. For each test case, output one line containing two integers -- the index of the special array, and the number of times that Operation 2 was performed on it. It can be shown that under the constraints given in the problem, this value is unique and won't exceed 10^{18} , so you can represent it as a 64 -bit integer. It can also be shown that the index of the "...

Tutorials

CodeTON Round 2 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
166383618 DmitriyAnikeyev D July 31, 2022, 3:21 p.m. OK C# 10 TESTS 78 280 71782400
166433893 chenly8128 D Aug. 1, 2022, 2:57 a.m. OK GNU C11 TESTS 78 202 819200
166422994 zyhbbbzyhbbb D July 31, 2022, 11:03 p.m. OK GNU C++14 TESTS 78 46 102400
166398039 ForbiddenCider D July 31, 2022, 4:26 p.m. OK GNU C++14 TESTS 78 46 8396800
166394551 Elucid D July 31, 2022, 4:08 p.m. OK GNU C++14 TESTS 78 46 12083200
166434036 Hatsune_MikuOvO D Aug. 1, 2022, 2:59 a.m. OK GNU C++14 TESTS 78 77 59596800
166387307 wangxiwen D July 31, 2022, 3:35 p.m. OK GNU C++14 TESTS 78 233 16793600
166424224 wuzr D July 31, 2022, 11:56 p.m. OK GNU C++14 TESTS 78 233 26009600
166407164 Duy_e D July 31, 2022, 6:23 p.m. OK GNU C++14 TESTS 78 233 35123200
166430640 my_sortAKNOI2022 D Aug. 1, 2022, 2:05 a.m. OK GNU C++14 TESTS 78 234 0
166436768 zeroliebe D Aug. 1, 2022, 3:43 a.m. OK GNU C++14 TESTS 78 234 0
166444100 ZCETHAN D Aug. 1, 2022, 5:49 a.m. OK GNU C++14 TESTS 78 234 819200
166442504 Bobocan D Aug. 1, 2022, 5:24 a.m. OK GNU C++17 TESTS 78 46 512000
166384686 SwordFlame D July 31, 2022, 3:25 p.m. OK GNU C++17 TESTS 78 62 819200
166406338 JerryBlack D July 31, 2022, 6:17 p.m. OK GNU C++17 TESTS 78 62 921600
166398519 hydro-bot3 D July 31, 2022, 4:28 p.m. OK GNU C++17 TESTS 78 62 10444800
166383659 OctaneC8H18 D July 31, 2022, 3:21 p.m. OK GNU C++17 TESTS 78 202 819200
166421961 dean.menezes D July 31, 2022, 10:36 p.m. OK GNU C++17 TESTS 78 202 21196800
166394269 ZhmTempura D July 31, 2022, 4:06 p.m. OK GNU C++17 TESTS 78 218 11059200
166435343 zhiqiu D Aug. 1, 2022, 3:20 a.m. OK GNU C++17 TESTS 78 233 9932800
166432977 swjtu_cfbird D Aug. 1, 2022, 2:42 a.m. OK GNU C++17 TESTS 78 233 26009600
166388142 NegaTeeF D July 31, 2022, 3:38 p.m. OK GNU C++17 TESTS 78 234 1126400
166435548 CLT D Aug. 1, 2022, 3:23 a.m. OK GNU C++17 (64) TESTS 78 46 3584000
166433871 KcwAC D Aug. 1, 2022, 2:57 a.m. OK GNU C++17 (64) TESTS 78 140 34099200
166413618 KeremTeke D July 31, 2022, 7:40 p.m. OK GNU C++17 (64) TESTS 78 155 0
166413161 Richw818 D July 31, 2022, 7:33 p.m. OK GNU C++17 (64) TESTS 78 155 819200
166436465 asd12 D Aug. 1, 2022, 3:38 a.m. OK GNU C++17 (64) TESTS 78 155 819200
166429144 errorgorn D Aug. 1, 2022, 1:41 a.m. OK GNU C++17 (64) TESTS 78 155 819200
166413082 InDI2k D July 31, 2022, 7:32 p.m. OK GNU C++17 (64) TESTS 78 155 819200
166406770 mstar0122 D July 31, 2022, 6:20 p.m. OK GNU C++17 (64) TESTS 78 155 819200
166411483 Beevo D July 31, 2022, 7:10 p.m. OK GNU C++17 (64) TESTS 78 155 1433600
166427409 jintianjiupochan D Aug. 1, 2022, 1:16 a.m. OK GNU C++17 (64) TESTS 78 155 2457600
166427515 -shirley D Aug. 1, 2022, 1:18 a.m. OK GNU C++20 (64) TESTS 78 46 5017600
166432533 win10 D Aug. 1, 2022, 2:36 a.m. OK GNU C++20 (64) TESTS 78 46 14131200
166387648 FuDiWeiu D July 31, 2022, 3:36 p.m. OK GNU C++20 (64) TESTS 78 46 53043200
166384020 Sol1 D July 31, 2022, 3:22 p.m. OK GNU C++20 (64) TESTS 78 62 3686400
166388647 08150442 D July 31, 2022, 3:40 p.m. OK GNU C++20 (64) TESTS 78 93 14438400
166443028 huomark1001 D Aug. 1, 2022, 5:32 a.m. OK GNU C++20 (64) TESTS 78 124 0
166408619 Nero D July 31, 2022, 6:36 p.m. OK GNU C++20 (64) TESTS 78 124 0
166407389 ak-group D July 31, 2022, 6:25 p.m. OK GNU C++20 (64) TESTS 78 124 0
166442012 hsieneis D Aug. 1, 2022, 5:16 a.m. OK GNU C++20 (64) TESTS 78 124 819200
166438956 Namit D Aug. 1, 2022, 4:21 a.m. OK GNU C++20 (64) TESTS 78 124 819200
166385744 PatchouliKnowledge D July 31, 2022, 3:29 p.m. OK Go TESTS 78 139 12492800
166384691 k1rill_fedoseev D July 31, 2022, 3:25 p.m. OK Go TESTS 78 233 9523200
166383931 zelknow26 D July 31, 2022, 3:22 p.m. OK Go TESTS 78 623 11366400
166395738 O_Vladimir D July 31, 2022, 4:14 p.m. OK Go TESTS 78 826 12800000
166385465 adi_7861 D July 31, 2022, 3:28 p.m. OK Java 11 TESTS 78 249 0
166389945 megaspazz D July 31, 2022, 3:46 p.m. OK Java 11 TESTS 78 280 5324800
166405500 dunkingdonuts D July 31, 2022, 6:12 p.m. OK Java 11 TESTS 78 280 5427200
166406620 gaju321 D July 31, 2022, 6:19 p.m. OK Java 11 TESTS 78 389 5632000
166405716 Jeg D July 31, 2022, 6:13 p.m. OK Java 11 TESTS 78 389 10752000
166398038 naman5811 D July 31, 2022, 4:26 p.m. OK Java 11 TESTS 78 389 13107200
166429485 aditya2024 D Aug. 1, 2022, 1:46 a.m. OK Java 11 TESTS 78 405 10240000
166429394 the_unseen D Aug. 1, 2022, 1:45 a.m. OK Java 11 TESTS 78 405 13004800
166392070 immatur1ty D July 31, 2022, 3:56 p.m. OK Java 11 TESTS 78 420 12902400
166407071 Yuki_B D July 31, 2022, 6:22 p.m. OK Java 11 TESTS 78 421 12902400
166410856 soumit915 D July 31, 2022, 7:03 p.m. OK Java 17 TESTS 78 280 9318400
166397143 TCchen D July 31, 2022, 4:22 p.m. OK Java 17 TESTS 78 436 6451200
166406147 freehandle D July 31, 2022, 6:16 p.m. OK Java 17 TESTS 78 436 14336000
166435302 cftauros D Aug. 1, 2022, 3:20 a.m. OK Java 8 TESTS 78 155 0
166412916 leonlian D July 31, 2022, 7:29 p.m. OK Java 8 TESTS 78 155 0
166428421 Socrates1232 D Aug. 1, 2022, 1:31 a.m. OK Java 8 TESTS 78 218 4710400
166387897 DylanSmith D July 31, 2022, 3:37 p.m. OK Java 8 TESTS 78 295 21708800
166409247 ggghg D July 31, 2022, 6:43 p.m. OK Java 8 TESTS 78 295 32153600
166408535 1-1-1 D July 31, 2022, 6:35 p.m. OK Java 8 TESTS 78 296 11059200
166408909 Mustafa__ D July 31, 2022, 6:39 p.m. OK Java 8 TESTS 78 296 18636800
166405518 1-1-1 D July 31, 2022, 6:12 p.m. OK Java 8 TESTS 78 311 11059200
166389349 AndreySiunov D July 31, 2022, 3:43 p.m. OK Java 8 TESTS 78 311 18636800
166437192 ikillmyself D Aug. 1, 2022, 3:50 a.m. OK Java 8 TESTS 78 312 0
166418137 SlavaG D July 31, 2022, 8:54 p.m. OK Kotlin 1.6 TESTS 78 779 32768000
166418060 SlavaG D July 31, 2022, 8:53 p.m. OK Kotlin 1.6 TESTS 78 779 32768000
166392370 ktropin D July 31, 2022, 3:57 p.m. OK Mono C# TESTS 78 592 64819200
166419693 Bu1izhnik D July 31, 2022, 9:23 p.m. OK MS C++ 2017 TESTS 78 795 819200
166387819 hawaiianpizza D July 31, 2022, 3:37 p.m. OK MS C++ 2017 TESTS 78 795 3174400
166388938 BusIgor D July 31, 2022, 3:41 p.m. OK MS C++ 2017 TESTS 78 826 11366400
166400128 MrB0NAN D July 31, 2022, 4:34 p.m. OK MS C++ 2017 TESTS 78 904 9625600
166406156 1_2_3_4_5_9 D July 31, 2022, 6:16 p.m. OK PyPy 2 TESTS 78 374 54476800
166444376 YMSeah D Aug. 1, 2022, 5:53 a.m. OK PyPy 3 TESTS 78 311 29696000
166384623 zouyu9631 D July 31, 2022, 3:24 p.m. OK PyPy 3 TESTS 78 405 41267200
166443329 kraanzu D Aug. 1, 2022, 5:37 a.m. OK PyPy 3 TESTS 78 421 104652800
166405625 anishde85 D July 31, 2022, 6:13 p.m. OK PyPy 3 TESTS 78 545 52019200
166405599 sushmanth.dampur8780 D July 31, 2022, 6:13 p.m. OK PyPy 3 TESTS 78 857 33177600
166412026 Noureldin D July 31, 2022, 7:18 p.m. OK PyPy 3 TESTS 78 858 55091200
166383623 dolphin2025 D July 31, 2022, 3:21 p.m. OK PyPy 3 TESTS 78 1637 28979200
166387078 P_oldNik D July 31, 2022, 3:34 p.m. OK PyPy 3 TESTS 78 1637 38195200
166429571 moyung D Aug. 1, 2022, 1:48 a.m. OK PyPy 3-64 TESTS 78 233 36761600
166417339 PMiguelez D July 31, 2022, 8:40 p.m. OK PyPy 3-64 TESTS 78 233 39321600
166418502 wolfram_ D July 31, 2022, 9:01 p.m. OK PyPy 3-64 TESTS 78 265 44851200
166437794 Lanceloia D Aug. 1, 2022, 3:59 a.m. OK PyPy 3-64 TESTS 78 265 71680000
166426577 BeBeBe66666 D Aug. 1, 2022, 1:01 a.m. OK PyPy 3-64 TESTS 78 280 51814400
166425562 Juanm1 D Aug. 1, 2022, 12:36 a.m. OK PyPy 3-64 TESTS 78 295 53043200
166393722 james.maslen D July 31, 2022, 4:04 p.m. OK PyPy 3-64 TESTS 78 296 30412800
166394532 ulyabelyaeva D July 31, 2022, 4:08 p.m. OK PyPy 3-64 TESTS 78 296 56422400
166425604 Juanm1 D Aug. 1, 2022, 12:37 a.m. OK PyPy 3-64 TESTS 78 311 53145600
166444012 huangxw D Aug. 1, 2022, 5:48 a.m. OK PyPy 3-64 TESTS 78 311 71987200
166415580 r57shell D July 31, 2022, 8:09 p.m. OK Python 3 TESTS 78 545 33075200
166443133 pennymagic156 D Aug. 1, 2022, 5:34 a.m. OK Python 3 TESTS 78 577 31948800
166444202 abcsumit D Aug. 1, 2022, 5:50 a.m. OK Python 3 TESTS 78 685 26214400
166388298 joi_ D July 31, 2022, 3:39 p.m. OK Python 3 TESTS 78 701 31641600
166383564 carlfre D July 31, 2022, 3:21 p.m. OK Python 3 TESTS 78 702 26624000
166385081 FIFCOM D July 31, 2022, 3:26 p.m. OK Python 3 TESTS 78 1076 33792000
166382840 Niklassanden D July 31, 2022, 3:18 p.m. OK Rust 2021 TESTS 78 62 11980800
166413104 Thallium54 D July 31, 2022, 7:32 p.m. OK Rust 2021 TESTS 78 62 19148800
166383028 LittleFall D July 31, 2022, 3:19 p.m. OK Rust 2021 TESTS 78 139 47411200
166399200 liut D July 31, 2022, 4:31 p.m. OK Rust 2021 TESTS 78 140 9625600
166421058 luukaos D July 31, 2022, 10:11 p.m. OK Rust 2021 TESTS 78 155 20787200

remove filters

Back to search problems