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 133642463 Oct. 25, 2020, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14879 ) A Finding Sasuke PROGRAMMING constructive algorithms math

B"Naruto has sneaked into the Orochimaru's lair and is now looking for Sasuke. There are T rooms there. Every room has a door into it, each door can be described by the number n of seals on it and their integer energies a_1 , a_2 , ..., a_n . All energies a_i are nonzero and do not exceed 100 by absolute value. Also, n is even. In order to open a door, Naruto must find such n seals with integer energies b_1 , b_2 , ..., b_n that the following equality holds: a_{1} cdot b_{1} + a_{2} cdot b_{2} + ... + a_{n} cdot b_{n} = 0 . All b_i must be nonzero as well as a_i are, and also must not exceed 100 by absolute value. Please find required seals for every room there. The first line contains the only integer T ( 1 <= q T <= q 1000 ) standing for the number of rooms in the Orochimaru's lair. The other lines contain descriptions of the doors. Each description starts with the line containing the only even integer n ( 2 <= q n <= q 100 ) denoting the number of seals. The following line contains the space separated sequence of nonzero integers a_1 , a_2 , ..., a_n ( |a_{i}| <= q 100 , a_{i} neq 0 ) denoting the energies of seals. For each door print a space separated sequence of nonzero integers b_1 , b_2 , ..., b_n ( |b_{i}| <= q 100 , b_{i} neq 0 ) denoting the seals that can open the door. If there are multiple valid answers, print any. It can be proven that at least one answer always exists. For the first door Naruto can use energies [-100, 1] . The required equality does indeed hold: 1 cdot (-100) + 100 cdot 1 = 0 . For the second door Naruto can use, for example, energies [1, 1, 1, -1] . The required equality also holds: 1 cdot 1 + 2 cdot 1 + 3 cdot 1 + 6 cdot (-1) = 0 . "...

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
96656069 ZhavaFrog A Oct. 25, 2020, 11:18 a.m. OK FPC TESTS 13 296 0
96675604 M_R_Y A Oct. 25, 2020, noon OK FPC TESTS 13 327 0
96655454 artshellorok A Oct. 25, 2020, 11:17 a.m. OK GNU C11 TESTS 13 218 0
96709446 hnust_liuxin A Oct. 25, 2020, 2:59 p.m. OK GNU C++11 TESTS 13 31 0
96652240 MolotovM A Oct. 25, 2020, 11:12 a.m. OK GNU C++11 TESTS 13 62 0
96664166 Barracode A Oct. 25, 2020, 11:34 a.m. OK GNU C++11 TESTS 13 93 0
96654562 4c4f4c A Oct. 25, 2020, 11:16 a.m. OK GNU C++11 TESTS 13 93 0
96659569 Zzif A Oct. 25, 2020, 11:25 a.m. OK GNU C++11 TESTS 13 93 0
96659818 Evelinushka A Oct. 25, 2020, 11:25 a.m. OK GNU C++11 TESTS 13 93 0
96663258 Ruslan.m A Oct. 25, 2020, 11:32 a.m. OK GNU C++11 TESTS 13 93 0
96708740 vjudge3 A Oct. 25, 2020, 2:50 p.m. OK GNU C++11 TESTS 13 93 0
96685609 Limo56 A Oct. 25, 2020, 12:28 p.m. OK GNU C++11 TESTS 13 93 0
96684535 pavel16649 A Oct. 25, 2020, 12:24 p.m. OK GNU C++11 TESTS 13 93 0
96657337 B-N-B A Oct. 25, 2020, 11:21 a.m. OK GNU C++14 TESTS 13 31 0
96744485 AkaiLemon A Oct. 26, 2020, 4:17 a.m. OK GNU C++14 TESTS 13 46 0
96749320 kamleshbp A Oct. 26, 2020, 6 a.m. OK GNU C++14 TESTS 13 46 0
96716660 WarChild A Oct. 25, 2020, 4:35 p.m. OK GNU C++14 TESTS 13 46 0
96712774 Coder__31 A Oct. 25, 2020, 3:42 p.m. OK GNU C++14 TESTS 13 46 0
96709368 rum3r A Oct. 25, 2020, 2:58 p.m. OK GNU C++14 TESTS 13 46 0
96706549 akshay_malik A Oct. 25, 2020, 2:24 p.m. OK GNU C++14 TESTS 13 46 0
96701227 akshitdhoundiyal A Oct. 25, 2020, 1:34 p.m. OK GNU C++14 TESTS 13 46 0
96672054 Vas42 A Oct. 25, 2020, 11:51 a.m. OK GNU C++14 TESTS 13 46 0
96664085 alexeyshelyagin A Oct. 25, 2020, 11:34 a.m. OK GNU C++14 TESTS 13 46 0
96655001 CF_Prorok A Oct. 25, 2020, 11:17 a.m. OK GNU C++17 TESTS 13 31 0
96648929 Iforward A Oct. 25, 2020, 11:07 a.m. OK GNU C++17 TESTS 13 31 0
96649508 Processor A Oct. 25, 2020, 11:08 a.m. OK GNU C++17 TESTS 13 31 102400
96650888 AlmadelX A Oct. 25, 2020, 11:10 a.m. OK GNU C++17 TESTS 13 31 204800
96652476 Shizoid_Titov A Oct. 25, 2020, 11:13 a.m. OK GNU C++17 TESTS 13 31 204800
96652447 talant110726 A Oct. 25, 2020, 11:13 a.m. OK GNU C++17 TESTS 13 31 204800
96706238 giospada A Oct. 25, 2020, 2:20 p.m. OK GNU C++17 TESTS 13 46 0
96725851 Di_chiK A Oct. 25, 2020, 7:08 p.m. OK GNU C++17 TESTS 13 46 0
96718039 Potatoritos A Oct. 25, 2020, 4:56 p.m. OK GNU C++17 TESTS 13 46 0
96709646 CodeMonk101 A Oct. 25, 2020, 3:02 p.m. OK GNU C++17 TESTS 13 46 0
96648625 NinevskiyKN A Oct. 25, 2020, 11:06 a.m. OK GNU C++17 (64) TESTS 13 30 0
96650035 I.Gleb A Oct. 25, 2020, 11:09 a.m. OK GNU C++17 (64) TESTS 13 31 0
96745193 Codurr A Oct. 26, 2020, 4:37 a.m. OK GNU C++17 (64) TESTS 13 31 0
96710861 msz301005 A Oct. 25, 2020, 3:16 p.m. OK GNU C++17 (64) TESTS 13 31 0
96654687 vollery A Oct. 25, 2020, 11:16 a.m. OK GNU C++17 (64) TESTS 13 31 0
96652313 alexssiz1 A Oct. 25, 2020, 11:12 a.m. OK GNU C++17 (64) TESTS 13 31 0
96652280 easystart A Oct. 25, 2020, 11:12 a.m. OK GNU C++17 (64) TESTS 13 31 0
96651716 HamletPetrosyan A Oct. 25, 2020, 11:11 a.m. OK GNU C++17 (64) TESTS 13 31 0
96651636 vaaven A Oct. 25, 2020, 11:11 a.m. OK GNU C++17 (64) TESTS 13 31 0
96651401 Andr1y A Oct. 25, 2020, 11:11 a.m. OK GNU C++17 (64) TESTS 13 31 0
96694464 ghost777 A Oct. 25, 2020, 12:53 p.m. OK Go TESTS 13 982 4505600
96655994 andrewlevada A Oct. 25, 2020, 11:18 a.m. OK Java 11 TESTS 13 202 0
96648851 kiberKotleta2009 A Oct. 25, 2020, 11:07 a.m. OK Java 11 TESTS 13 218 0
96649583 Witless_Deer A Oct. 25, 2020, 11:08 a.m. OK Java 11 TESTS 13 218 0
96736872 Slamur A Oct. 26, 2020, 12:17 a.m. OK Java 11 TESTS 13 218 0
96648993 Shokersss A Oct. 25, 2020, 11:07 a.m. OK Java 11 TESTS 13 264 0
96701139 way_to_coding A Oct. 25, 2020, 1:32 p.m. OK Java 11 TESTS 13 327 0
96713612 felix_v4 A Oct. 25, 2020, 3:54 p.m. OK Java 11 TESTS 13 389 409600
96706845 anshuman1305 A Oct. 25, 2020, 2:27 p.m. OK Java 11 TESTS 13 467 0
96654745 KGalliamov A Oct. 25, 2020, 11:16 a.m. OK Java 11 TESTS 13 468 0
96681543 Malaxit A Oct. 25, 2020, 12:16 p.m. OK Java 11 TESTS 13 483 0
96701070 prezrohit A Oct. 25, 2020, 1:31 p.m. OK Java 8 TESTS 13 139 0
96654618 hvorvidt A Oct. 25, 2020, 11:16 a.m. OK Java 8 TESTS 13 139 0
96648820 LordOrbit A Oct. 25, 2020, 11:07 a.m. OK Java 8 TESTS 13 140 0
96661747 Kirill_Maglysh A Oct. 25, 2020, 11:29 a.m. OK Java 8 TESTS 13 140 0
96666925 Rey838 A Oct. 25, 2020, 11:40 a.m. OK Java 8 TESTS 13 155 0
96731197 Saptarshi98 A Oct. 25, 2020, 9:09 p.m. OK Java 8 TESTS 13 529 0
96685756 enhisir A Oct. 25, 2020, 12:28 p.m. OK Java 8 TESTS 13 701 0
96716205 iamdj A Oct. 25, 2020, 4:29 p.m. OK Java 8 TESTS 13 702 0
96669906 Helow19274 A Oct. 25, 2020, 11:46 a.m. OK Kotlin TESTS 13 202 204800
96669274 sultanmagomedov A Oct. 25, 2020, 11:45 a.m. OK Kotlin TESTS 13 265 1740800
96666924 TimmonRok A Oct. 25, 2020, 11:40 a.m. OK Kotlin TESTS 13 592 1843200
96666090 NeonyFenyx A Oct. 25, 2020, 11:38 a.m. OK Mono C# TESTS 13 93 4710400
96690086 Leva2206 A Oct. 25, 2020, 12:41 p.m. OK MS C++ TESTS 13 93 409600
96652148 Leha123 A Oct. 25, 2020, 11:12 a.m. OK MS C++ TESTS 13 108 0
96689039 wizzie A Oct. 25, 2020, 12:38 p.m. OK MS C++ TESTS 13 124 0
96696858 dan_top A Oct. 25, 2020, 12:59 p.m. OK MS C++ TESTS 13 234 0
96672881 Dmitriy040155 A Oct. 25, 2020, 11:53 a.m. OK MS C++ TESTS 13 296 0
96660772 Van9Lebed A Oct. 25, 2020, 11:27 a.m. OK MS C++ 2017 TESTS 13 124 0
96685798 borisVikVik A Oct. 25, 2020, 12:28 p.m. OK MS C++ 2017 TESTS 13 124 0
96667689 peachy A Oct. 25, 2020, 11:41 a.m. OK MS C++ 2017 TESTS 13 124 0
96657459 hamo510 A Oct. 25, 2020, 11:21 a.m. OK MS C++ 2017 TESTS 13 124 0
96656518 MokrushinVadim A Oct. 25, 2020, 11:19 a.m. OK MS C++ 2017 TESTS 13 124 0
96654166 gleb_shkoda A Oct. 25, 2020, 11:15 a.m. OK MS C++ 2017 TESTS 13 124 0
96653284 OMENZZZE A Oct. 25, 2020, 11:14 a.m. OK MS C++ 2017 TESTS 13 124 0
96652114 elizeyyy__ A Oct. 25, 2020, 11:12 a.m. OK MS C++ 2017 TESTS 13 124 0
96651368 Kimiega A Oct. 25, 2020, 11:11 a.m. OK MS C++ 2017 TESTS 13 124 0
96650862 n.a.orlov A Oct. 25, 2020, 11:10 a.m. OK MS C++ 2017 TESTS 13 124 0
96681780 arasfon A Oct. 25, 2020, 12:17 p.m. OK .NET Core C# TESTS 13 124 3276800
96663002 rotsinarm A Oct. 25, 2020, 11:31 a.m. OK .NET Core C# TESTS 13 124 6041600
96676243 JustNik77 A Oct. 25, 2020, 12:02 p.m. OK .NET Core C# TESTS 13 124 7168000
96691180 VivatImperial A Oct. 25, 2020, 12:44 p.m. OK .NET Core C# TESTS 13 124 7270400
96694917 Alex_713 A Oct. 25, 2020, 12:54 p.m. OK .NET Core C# TESTS 13 373 3379200
96675584 homyatsotsek A Oct. 25, 2020, noon OK .NET Core C# TESTS 13 405 7168000
96727235 thewarchief A Oct. 25, 2020, 7:34 p.m. OK Node.js TESTS 13 139 5222400
96657013 d003denis A Oct. 25, 2020, 11:20 a.m. OK PascalABC.NET TESTS 13 857 0
96667060 Ciaran. A Oct. 25, 2020, 11:40 a.m. OK PascalABC.NET TESTS 13 904 0
96692919 Igrick A Oct. 25, 2020, 12:49 p.m. OK PascalABC.NET TESTS 13 966 512000
96671750 ElizavetaS A Oct. 25, 2020, 11:51 a.m. OK PascalABC.NET TESTS 13 982 0
96658503 blushfox21 A Oct. 25, 2020, 11:23 a.m. OK PascalABC.NET TESTS 13 982 0
96676470 Neon73 A Oct. 25, 2020, 12:02 p.m. OK PascalABC.NET TESTS 13 982 102400
96668556 Keremzero4 A Oct. 25, 2020, 11:43 a.m. OK PascalABC.NET TESTS 13 997 102400
96668987 ritasitkina A Oct. 25, 2020, 11:44 a.m. OK PascalABC.NET TESTS 13 997 204800
96662247 cYxSH1 A Oct. 25, 2020, 11:30 a.m. OK PascalABC.NET TESTS 13 997 307200
96682536 Ulatlene A Oct. 25, 2020, 12:19 p.m. OK PascalABC.NET TESTS 13 998 0
96654617 TimurABS A Oct. 25, 2020, 11:16 a.m. OK PyPy 3 TESTS 13 233 9420800
96653462 myotra A Oct. 25, 2020, 11:14 a.m. OK PyPy 3 TESTS 13 233 9523200
96705236 anontot A Oct. 25, 2020, 2:10 p.m. OK PyPy 3 TESTS 13 249 6144000
96676912 Nifer A Oct. 25, 2020, 12:04 p.m. OK PyPy 3 TESTS 13 264 9420800
96648742 UTMoonlight A Oct. 25, 2020, 11:07 a.m. OK PyPy 3 TESTS 13 264 9523200
96648833 ulyabelyaeva A Oct. 25, 2020, 11:07 a.m. OK PyPy 3 TESTS 13 265 5734400
96656863 Alex373737 A Oct. 25, 2020, 11:20 a.m. OK PyPy 3 TESTS 13 265 6144000
96654690 R_o_B_e_R_t A Oct. 25, 2020, 11:16 a.m. OK PyPy 3 TESTS 13 265 9625600
96660678 Widowan A Oct. 25, 2020, 11:27 a.m. OK PyPy 3 TESTS 13 280 5222400
96665645 EnderMaster A Oct. 25, 2020, 11:37 a.m. OK PyPy 3 TESTS 13 280 6041600
96658095 BorisSaf A Oct. 25, 2020, 11:22 a.m. OK Python 3 TESTS 13 155 0
96672182 u2er A Oct. 25, 2020, 11:52 a.m. OK Python 3 TESTS 13 155 3686400
96653328 hikaru2019 A Oct. 25, 2020, 11:14 a.m. OK Python 3 TESTS 13 171 0
96656568 Sevastian A Oct. 25, 2020, 11:19 a.m. OK Python 3 TESTS 13 171 0
96677472 DmitryBK A Oct. 25, 2020, 12:05 p.m. OK Python 3 TESTS 13 171 307200
96664880 Brescanu A Oct. 25, 2020, 11:35 a.m. OK Python 3 TESTS 13 171 307200
96679607 _Dart_ A Oct. 25, 2020, 12:11 p.m. OK Python 3 TESTS 13 171 307200
96676574 AyazYahin A Oct. 25, 2020, 12:03 p.m. OK Python 3 TESTS 13 171 307200
96672399 proto793 A Oct. 25, 2020, 11:52 a.m. OK Python 3 TESTS 13 171 1331200
96669289 stpdrn A Oct. 25, 2020, 11:45 a.m. OK Python 3 TESTS 13 171 1331200
96739267 iehn A Oct. 26, 2020, 1:43 a.m. OK Rust TESTS 13 46 1126400

remove filters

Back to search problems