Technocup 2021 - Elimination Round 1

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
1413 Technocup 2021 - Elimination Round 1 FINISHED False 7200 128199299 Oct. 25, 2020, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11731 ) B A New Technique PROGRAMMING implementation #basketball together

B"All techniques in the ninja world consist of hand seals. At the moment Naruto is learning a new technique, which consists of n cdot m different seals, denoted by distinct numbers. All of them were written in an n x m table. The table is lost now. Naruto managed to remember elements of each row from left to right, and elements of each column from top to bottom, but he doesn't remember the order of rows and columns. Please restore the table consistent with this data so that Naruto will be able to learn the new technique. The first line of the input contains the only integer t ( 1 <= q t <= q 100 ,000 ) denoting the number of test cases. Their descriptions follow. The first line of each test case description consists of two space-separated integers n and m ( 1 <= q n, m <= q 500 ) standing for the number of rows and columns in the table, respectively. All hand seals are encoded by the positive integers from 1 to n cdot m . The following n lines contain m space separated integers each, denoting elements of an arbitrary row in the table left to right. The following m lines contain n space separated integers each, denoting elements of an arbitrary column in the table top to bottom. Sum of nm over all test cases does not exceed 250 ,000 . It is guaranteed that each row occurs in the input exactly once, as well as each column. It is also guaranteed that each number from 1 to nm occurs exactly once in all rows, as well as in all columns. Finally, it is guaranteed that a table consistent with the input exists. For each test case, output n lines with m space-separated integers each, denoting the restored table. One can show that the answer is always unique. Consider the first test case. The matrix is 2 x 3 . You are given the rows and columns in arbitrary order. One of the rows is [6, 5, 4] . One of the rows is [1, 2, 3] . One of the colum"...

Tutorials

Codeforces Round 679 (Div. 1, Div. 2) and Technocup Round 1 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
96665267 ZhavaFrog B Oct. 25, 2020, 11:36 a.m. OK FPC TESTS 10 842 2969600
96684660 MolotovM B Oct. 25, 2020, 12:25 p.m. OK GNU C++11 TESTS 10 109 15974400
96670258 Limo56 B Oct. 25, 2020, 11:47 a.m. OK GNU C++11 TESTS 10 312 1126400
96659439 Maskoffski B Oct. 25, 2020, 11:24 a.m. OK GNU C++11 TESTS 10 327 5120000
96678059 margulkz B Oct. 25, 2020, 12:07 p.m. OK GNU C++11 TESTS 10 342 13107200
96656683 Blueberry13 B Oct. 25, 2020, 11:20 a.m. OK GNU C++11 TESTS 10 343 2150400
96674960 myav B Oct. 25, 2020, 11:58 a.m. OK GNU C++11 TESTS 10 358 1024000
96674634 Zzif B Oct. 25, 2020, 11:58 a.m. OK GNU C++11 TESTS 10 358 1126400
96663325 4c4f4c B Oct. 25, 2020, 11:32 a.m. OK GNU C++11 TESTS 10 358 5324800
96657701 dunda B Oct. 25, 2020, 11:21 a.m. OK GNU C++11 TESTS 10 358 6144000
96657172 CNik B Oct. 25, 2020, 11:20 a.m. OK GNU C++11 TESTS 10 358 21811200
96659517 gendenir B Oct. 25, 2020, 11:24 a.m. OK GNU C++14 TESTS 10 109 2048000
96747723 ckai2480 B Oct. 26, 2020, 5:30 a.m. OK GNU C++14 TESTS 10 124 1126400
96724657 Rivankata B Oct. 25, 2020, 6:48 p.m. OK GNU C++14 TESTS 10 124 2048000
96736419 Grazy B Oct. 25, 2020, 11:58 p.m. OK GNU C++14 TESTS 10 139 2150400
96658035 eeestrelok B Oct. 25, 2020, 11:22 a.m. OK GNU C++14 TESTS 10 155 1945600
96683117 Lev2131 B Oct. 25, 2020, 12:20 p.m. OK GNU C++14 TESTS 10 155 2048000
96650830 Nybik B Oct. 25, 2020, 11:10 a.m. OK GNU C++14 TESTS 10 155 2252800
96673620 baby_tape B Oct. 25, 2020, 11:55 a.m. OK GNU C++14 TESTS 10 155 2355200
96706042 adhklp B Oct. 25, 2020, 2:18 p.m. OK GNU C++14 TESTS 10 155 3072000
96662343 shabad.k8244 B Oct. 25, 2020, 11:30 a.m. OK GNU C++14 TESTS 10 155 3072000
96660384 Polina03 B Oct. 25, 2020, 11:26 a.m. OK GNU C++17 TESTS 10 124 1126400
96671972 syyntx B Oct. 25, 2020, 11:51 a.m. OK GNU C++17 TESTS 10 124 1331200
96736037 abc864197532 B Oct. 25, 2020, 11:40 p.m. OK GNU C++17 TESTS 10 124 2150400
96655469 ipamaro B Oct. 25, 2020, 11:17 a.m. OK GNU C++17 TESTS 10 124 2252800
96655367 dshindov B Oct. 25, 2020, 11:17 a.m. OK GNU C++17 TESTS 10 124 2252800
96651853 kostia244 B Oct. 25, 2020, 11:12 a.m. OK GNU C++17 TESTS 10 124 3072000
96660469 Vikt B Oct. 25, 2020, 11:26 a.m. OK GNU C++17 TESTS 10 124 12185600
96659302 VladimirM B Oct. 25, 2020, 11:24 a.m. OK GNU C++17 TESTS 10 139 1228800
96707307 Sohrabiei B Oct. 25, 2020, 2:33 p.m. OK GNU C++17 TESTS 10 139 1228800
96671340 Wolfire B Oct. 25, 2020, 11:50 a.m. OK GNU C++17 TESTS 10 139 2252800
96659498 Mellor B Oct. 25, 2020, 11:24 a.m. OK GNU C++17 (64) TESTS 10 93 2150400
96653638 Artyom123 B Oct. 25, 2020, 11:14 a.m. OK GNU C++17 (64) TESTS 10 93 2150400
96674654 obr.n198 B Oct. 25, 2020, 11:58 a.m. OK GNU C++17 (64) TESTS 10 93 2867200
96654970 Dmitry10005 B Oct. 25, 2020, 11:17 a.m. OK GNU C++17 (64) TESTS 10 93 3174400
96657694 Ziel B Oct. 25, 2020, 11:21 a.m. OK GNU C++17 (64) TESTS 10 93 6656000
96656759 Golden B Oct. 25, 2020, 11:20 a.m. OK GNU C++17 (64) TESTS 10 108 2048000
96703692 sreeshmaheshwar B Oct. 25, 2020, 1:55 p.m. OK GNU C++17 (64) TESTS 10 108 2150400
96655475 EmilConst B Oct. 25, 2020, 11:17 a.m. OK GNU C++17 (64) TESTS 10 108 2252800
96691570 Dubstep2000 B Oct. 25, 2020, 12:45 p.m. OK GNU C++17 (64) TESTS 10 108 2969600
96683046 EreminVladimir B Oct. 25, 2020, 12:20 p.m. OK GNU C++17 (64) TESTS 10 108 3072000
96659122 jegfault B Oct. 25, 2020, 11:24 a.m. OK Haskell TESTS 10 296 18022400
96736783 Slamur B Oct. 26, 2020, 12:13 a.m. OK Java 11 TESTS 10 311 409600
96666881 a.nasretdinov B Oct. 25, 2020, 11:40 a.m. OK Java 11 TESTS 10 358 18739200
96660240 Witless_Deer B Oct. 25, 2020, 11:26 a.m. OK Java 11 TESTS 10 404 15564800
96719231 L_MESSI_10 B Oct. 25, 2020, 5:14 p.m. OK Java 11 TESTS 10 576 410726400
96672342 ThisIsNotKrows B Oct. 25, 2020, 11:52 a.m. OK Java 11 TESTS 10 811 614400
96716338 prezrohit B Oct. 25, 2020, 4:30 p.m. OK Java 8 TESTS 10 155 0
96660378 hvorvidt B Oct. 25, 2020, 11:26 a.m. OK Java 8 TESTS 10 186 0
96655507 LordOrbit B Oct. 25, 2020, 11:17 a.m. OK Java 8 TESTS 10 249 0
96675970 Kirill_Maglysh B Oct. 25, 2020, 12:01 p.m. OK Java 8 TESTS 10 295 16384000
96746373 OmarFouad B Oct. 26, 2020, 5:03 a.m. OK Java 8 TESTS 10 670 0
96682695 Leha123 B Oct. 25, 2020, 12:19 p.m. OK MS C++ TESTS 10 654 2252800
96661017 lioshik_ B Oct. 25, 2020, 11:27 a.m. OK MS C++ 2017 TESTS 10 78 2150400
96685865 zdechex B Oct. 25, 2020, 12:28 p.m. OK MS C++ 2017 TESTS 10 421 3072000
96687700 123456789987654321 B Oct. 25, 2020, 12:34 p.m. OK MS C++ 2017 TESTS 10 499 2252800
96658873 _insomaniac B Oct. 25, 2020, 11:23 a.m. OK MS C++ 2017 TESTS 10 499 5017600
96671249 elizeyyy__ B Oct. 25, 2020, 11:49 a.m. OK MS C++ 2017 TESTS 10 529 6144000
96677605 Gleb1000 B Oct. 25, 2020, 12:06 p.m. OK MS C++ 2017 TESTS 10 545 2048000
96655820 a.stepanov281005 B Oct. 25, 2020, 11:18 a.m. OK MS C++ 2017 TESTS 10 545 6656000
96668158 ShvarcstNeger B Oct. 25, 2020, 11:42 a.m. OK MS C++ 2017 TESTS 10 546 4403200
96704942 alex0987654333 B Oct. 25, 2020, 2:07 p.m. OK MS C++ 2017 TESTS 10 608 1126400
96652863 Catmoonlight B Oct. 25, 2020, 11:13 a.m. OK MS C++ 2017 TESTS 10 608 3072000
96687505 rotsinarm B Oct. 25, 2020, 12:33 p.m. OK .NET Core C# TESTS 10 420 14336000
96655154 sdhd B Oct. 25, 2020, 11:17 a.m. OK PyPy 3 TESTS 10 483 35225600
96721548 Tatyana000 B Oct. 25, 2020, 5:54 p.m. OK PyPy 3 TESTS 10 561 9625600
96701496 IAM2006 B Oct. 25, 2020, 1:37 p.m. OK PyPy 3 TESTS 10 607 14540800
96668378 Nifer B Oct. 25, 2020, 11:43 a.m. OK PyPy 3 TESTS 10 607 19251200
96696264 Adyan B Oct. 25, 2020, 12:58 p.m. OK PyPy 3 TESTS 10 608 17715200
96682808 TimurABS B Oct. 25, 2020, 12:20 p.m. OK PyPy 3 TESTS 10 623 10547200
96668441 danil1234 B Oct. 25, 2020, 11:43 a.m. OK PyPy 3 TESTS 10 623 10956800
96684257 Anastasiya28 B Oct. 25, 2020, 12:24 p.m. OK PyPy 3 TESTS 10 639 10547200
96665093 Denx24x B Oct. 25, 2020, 11:36 a.m. OK PyPy 3 TESTS 10 686 11161600
96726009 Dart-Xeyter B Oct. 25, 2020, 7:11 p.m. OK PyPy 3 TESTS 10 717 9830400
96683346 SADFUN B Oct. 25, 2020, 12:21 p.m. OK Python 2 TESTS 10 967 8499200
96713868 Krampu B Oct. 25, 2020, 3:57 p.m. OK Python 3 TESTS 10 670 6041600
96697029 Arsen4ikVar B Oct. 25, 2020, 1 p.m. OK Python 3 TESTS 10 685 15155200
96714050 Badguy_19 B Oct. 25, 2020, 3:59 p.m. OK Python 3 TESTS 10 686 15155200
96700702 _unstable_atom B Oct. 25, 2020, 1:24 p.m. OK Python 3 TESTS 10 779 13824000
96706344 KatyaParf B Oct. 25, 2020, 2:22 p.m. OK Python 3 TESTS 10 779 25497600
96670504 Yveega B Oct. 25, 2020, 11:48 a.m. OK Python 3 TESTS 10 826 10342400
96705043 KatyaParf B Oct. 25, 2020, 2:08 p.m. OK Python 3 TESTS 10 826 25497600
96705511 NoKnowledgeGG B Oct. 25, 2020, 2:12 p.m. OK Python 3 TESTS 10 857 3379200
96741566 classy_massy B Oct. 26, 2020, 2:55 a.m. OK Python 3 TESTS 10 857 12390400
96740876 happa B Oct. 26, 2020, 2:36 a.m. OK Python 3 TESTS 10 888 11571200

remove filters

Back to search problems