Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2)

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
1523 Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2) FINISHED False 8100 109437899 May 30, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12120 ) B Lord of the Values PROGRAMMING constructive algorithms 1100

B'While trading on his favorite exchange trader William realized that he found a vulnerability. Using this vulnerability he could change the values of certain internal variables to his advantage. To play around he decided to change the values of all internal variables from a_1, a_2, ldots, a_n to -a_1, -a_2, ldots, -a_n . For some unknown reason, the number of service variables is always an even number. William understands that with his every action he attracts more and more attention from the exchange 's security team, so the number of his actions must not exceed 5 ,000 and after every operation no variable can have an absolute value greater than 10^{18} . William can perform actions of two types for two chosen variables with indices i and j , where i < j : Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 20 ). Description of the test cases follows. The first line of each test case contains a single even integer n ( 2 <= n <= 10^3 ), which is the number of internal variables. The second line of each test case contains n integers a_1, a_2, ldots, a_n (1 <= a_i <= 10^9) , which are initial values of internal variables. For each test case print the answer in the following format: The first line of output must contain the total number of actions k , which the strategy will perform. Note that you do not have to minimize k . The inequality k <= 5 ,000 must be satisfied. Each of the next k lines must contain actions formatted as "type i j", where "type" is equal to "1" if the strategy needs to perform an assignment of the first type and "2" if the strategy needs to perform an assignment of the second type. Note that i < j should hold. We can show that an answer always exists. For the first sample test case one possible sequence of operations is as follows: For the second sample test case one possible'...

Tutorials

Deltix Round, Spring 2021. Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
117927197 ssvb B May 30, 2021, 6:25 p.m. OK D TESTS 16 46 4198400 1100
117918350 anupamk0401 B May 30, 2021, 4:48 p.m. OK GNU C11 TESTS 16 249 0 1100
117945888 black_white_tony B May 31, 2021, 3:13 a.m. OK GNU C++11 TESTS 16 31 0 1100
117943937 changle_cyx B May 31, 2021, 2:22 a.m. OK GNU C++11 TESTS 16 31 0 1100
117942873 aidehuaerzi B May 31, 2021, 1:50 a.m. OK GNU C++11 TESTS 16 31 0 1100
117942422 Epiphanyi B May 31, 2021, 1:32 a.m. OK GNU C++11 TESTS 16 31 0 1100
117928858 shakugan_no_shanatan_ B May 30, 2021, 6:49 p.m. OK GNU C++11 TESTS 16 31 0 1100
117909483 Ron_Ye B May 30, 2021, 4:13 p.m. OK GNU C++11 TESTS 16 31 0 1100
117910930 cjybyjk B May 30, 2021, 4:19 p.m. OK GNU C++11 TESTS 16 31 0 1100
117956244 Yewandou B May 31, 2021, 5:59 a.m. OK GNU C++11 TESTS 16 31 0 1100
117941601 flmast B May 31, 2021, 1 a.m. OK GNU C++11 TESTS 16 31 102400 1100
117949217 chasing_dream B May 31, 2021, 4:22 a.m. OK GNU C++11 TESTS 16 46 0 1100
117941824 tzxydby B May 31, 2021, 1:10 a.m. OK GNU C++14 TESTS 16 31 0 1100
117949732 vjudge3 B May 31, 2021, 4:33 a.m. OK GNU C++14 TESTS 16 31 0 1100
117948629 uhiaoku B May 31, 2021, 4:11 a.m. OK GNU C++14 TESTS 16 31 0 1100
117942987 slanuk B May 31, 2021, 1:54 a.m. OK GNU C++14 TESTS 16 31 0 1100
117941369 Asurudo_Jyo B May 31, 2021, 12:47 a.m. OK GNU C++14 TESTS 16 31 0 1100
117951253 cicada2020 B May 31, 2021, 4:47 a.m. OK GNU C++14 TESTS 16 31 102400 1100
117930468 altaf623a B May 30, 2021, 7:11 p.m. OK GNU C++14 TESTS 16 31 102400 1100
117954731 sudhirMTS B May 31, 2021, 5:38 a.m. OK GNU C++14 TESTS 16 46 0 1100
117955512 NumberMere0 B May 31, 2021, 5:50 a.m. OK GNU C++14 TESTS 16 46 0 1100
117953649 Mr_Bin B May 31, 2021, 5:24 a.m. OK GNU C++14 TESTS 16 46 0 1100
117943567 anshitmishra B May 31, 2021, 2:12 a.m. OK GNU C++17 TESTS 16 31 0 1100
117955705 An1mesh B May 31, 2021, 5:52 a.m. OK GNU C++17 TESTS 16 31 0 1100
117949788 aim100 B May 31, 2021, 4:34 a.m. OK GNU C++17 TESTS 16 31 0 1100
117949236 mindCalculator B May 31, 2021, 4:23 a.m. OK GNU C++17 TESTS 16 31 0 1100
117947966 srij111 B May 31, 2021, 3:58 a.m. OK GNU C++17 TESTS 16 31 0 1100
117946732 JR_Jahed B May 31, 2021, 3:32 a.m. OK GNU C++17 TESTS 16 31 0 1100
117943151 austinhmh B May 31, 2021, 2 a.m. OK GNU C++17 TESTS 16 31 0 1100
117943138 machiron B May 31, 2021, 1:59 a.m. OK GNU C++17 TESTS 16 31 0 1100
117941450 raypeng1729 B May 31, 2021, 12:51 a.m. OK GNU C++17 TESTS 16 31 0 1100
117941222 the_ancient_one_ B May 31, 2021, 12:40 a.m. OK GNU C++17 TESTS 16 31 0 1100
117943693 chctxdy68 B May 31, 2021, 2:16 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117955394 FedShat B May 31, 2021, 5:48 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117954832 arnold27 B May 31, 2021, 5:40 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117953984 simply_hooman B May 31, 2021, 5:28 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117951981 Ernestico B May 31, 2021, 4:58 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117949309 Asif732 B May 31, 2021, 4:24 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117947173 kshittiz21 B May 31, 2021, 3:41 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117947110 nhphucqt B May 31, 2021, 3:40 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117946955 prabhav401 B May 31, 2021, 3:37 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117946168 Sanzh B May 31, 2021, 3:19 a.m. OK GNU C++17 (64) TESTS 16 31 0 1100
117943338 Andwerp B May 31, 2021, 2:06 a.m. OK Java 11 TESTS 16 187 0 1100
117951872 coder0687 B May 31, 2021, 4:56 a.m. OK Java 11 TESTS 16 202 0 1100
117910725 ishaanahuja101 B May 30, 2021, 4:18 p.m. OK Java 11 TESTS 16 202 0 1100
117933923 5612 B May 30, 2021, 8:10 p.m. OK Java 11 TESTS 16 218 0 1100
117933673 5612 B May 30, 2021, 8:05 p.m. OK Java 11 TESTS 16 218 0 1100
117931474 ab5v B May 30, 2021, 7:26 p.m. OK Java 11 TESTS 16 233 0 1100
117941047 ramuked B May 31, 2021, 12:31 a.m. OK Java 11 TESTS 16 233 0 1100
117920818 zvsevolod B May 30, 2021, 5:27 p.m. OK Java 11 TESTS 16 233 0 1100
117915824 GhoulvsTitan B May 30, 2021, 4:39 p.m. OK Java 11 TESTS 16 233 0 1100
117937964 atish1999 B May 30, 2021, 10:01 p.m. OK Java 11 TESTS 16 233 307200 1100
117939640 marcose18 B May 30, 2021, 11:25 p.m. OK Java 8 TESTS 16 124 0 1100
117932050 Adi_7861 B May 30, 2021, 7:36 p.m. OK Java 8 TESTS 16 124 0 1100
117909425 twoBit B May 30, 2021, 4:13 p.m. OK Java 8 TESTS 16 124 0 1100
117933353 RonWonWon B May 30, 2021, 7:59 p.m. OK Java 8 TESTS 16 124 0 1100
117911946 chetanyagupta13 B May 30, 2021, 4:23 p.m. OK Java 8 TESTS 16 139 0 1100
117953564 gssakash B May 31, 2021, 5:22 a.m. OK Java 8 TESTS 16 139 0 1100
117952085 Akash_kunwar B May 31, 2021, 4:59 a.m. OK Java 8 TESTS 16 140 0 1100
117948693 tryfg B May 31, 2021, 4:12 a.m. OK Java 8 TESTS 16 140 0 1100
117953272 rsingh3_be18 B May 31, 2021, 5:18 a.m. OK Java 8 TESTS 16 140 0 1100
117952873 Halix B May 31, 2021, 5:11 a.m. OK Java 8 TESTS 16 140 0 1100
117921242 Tlatoani B May 30, 2021, 5:29 p.m. OK Kotlin TESTS 16 499 0 1100
117921042 og.kostya B May 30, 2021, 5:29 p.m. OK Mono C# TESTS 16 62 2969600 1100
117942964 dingzhao777 B May 31, 2021, 1:53 a.m. OK MS C++ 2017 TESTS 16 46 819200 1100
117935734 Ilya.Yrasov B May 30, 2021, 8:49 p.m. OK MS C++ 2017 TESTS 16 124 0 1100
117916393 Vetriti B May 30, 2021, 4:41 p.m. OK MS C++ 2017 TESTS 16 124 0 1100
117913211 Asmit108 B May 30, 2021, 4:29 p.m. OK MS C++ 2017 TESTS 16 342 0 1100
117921128 og.kostya B May 30, 2021, 5:29 p.m. OK .NET Core C# TESTS 16 93 1024000 1100
117942760 sakapon B May 31, 2021, 1:45 a.m. OK .NET Core C# TESTS 16 109 8192000 1100
117913349 kagu B May 30, 2021, 4:29 p.m. OK PyPy 2 TESTS 16 93 6041600 1100
117937936 tanmay104 B May 30, 2021, 10 p.m. OK PyPy 3 TESTS 16 155 5427200 1100
117921082 not_tehlka B May 30, 2021, 5:29 p.m. OK PyPy 3 TESTS 16 155 5836800 1100
117909237 hash1023 B May 30, 2021, 4:12 p.m. OK PyPy 3 TESTS 16 155 8396800 1100
117955861 sher_locked99 B May 31, 2021, 5:54 a.m. OK PyPy 3 TESTS 16 156 5734400 1100
117952329 rummansadik B May 31, 2021, 5:03 a.m. OK PyPy 3 TESTS 16 156 6451200 1100
117935614 Mistaek B May 30, 2021, 8:46 p.m. OK PyPy 3 TESTS 16 171 7475200 1100
117914537 kritarth2121 B May 30, 2021, 4:34 p.m. OK PyPy 3 TESTS 16 186 9728000 1100
117948446 edusanketdk B May 31, 2021, 4:07 a.m. OK PyPy 3 TESTS 16 187 6451200 1100
117914758 kritarth21 B May 30, 2021, 4:35 p.m. OK PyPy 3 TESTS 16 187 9830400 1100
117913197 tinycaterpillar B May 30, 2021, 4:29 p.m. OK PyPy 3 TESTS 16 202 4096000 1100
117938549 Neo_Re_L B May 30, 2021, 10:29 p.m. OK Python 3 TESTS 16 140 102400 1100
117923164 rlobz17 B May 30, 2021, 5:43 p.m. OK Python 3 TESTS 16 171 409600 1100
117926228 sh1194 B May 30, 2021, 6:14 p.m. OK Python 3 TESTS 16 187 307200 1100
117923272 samyaksrivastava9 B May 30, 2021, 5:44 p.m. OK Python 3 TESTS 16 187 307200 1100
117930021 alvaro.durand B May 30, 2021, 7:05 p.m. OK Python 3 TESTS 16 187 716800 1100
117935136 syntaxsugar B May 30, 2021, 8:34 p.m. OK Python 3 TESTS 16 280 409600 1100
117908828 A-310 B May 30, 2021, 4:10 p.m. OK Python 3 TESTS 16 280 409600 1100
117952632 lucifer1004 B May 31, 2021, 5:08 a.m. OK Python 3 TESTS 16 280 614400 1100
117935556 shubham_409 B May 30, 2021, 8:45 p.m. OK Python 3 TESTS 16 280 614400 1100
117914519 siramk B May 30, 2021, 4:34 p.m. OK Python 3 TESTS 16 280 2457600 1100
117938313 Neo_Re_L B May 30, 2021, 10:18 p.m. OK Python 3 + libs TESTS 16 248 0 1100
117932518 murch B May 30, 2021, 7:44 p.m. OK Rust TESTS 16 30 2150400 1100
117955375 Genius3435 B May 31, 2021, 5:48 a.m. OK Rust TESTS 16 46 0 1100
117909573 Hillmouse B May 30, 2021, 4:13 p.m. OK Rust TESTS 16 46 102400 1100
117910269 zheland B May 30, 2021, 4:16 p.m. OK Rust TESTS 16 46 204800 1100
117915627 uesugi B May 30, 2021, 4:38 p.m. OK Rust TESTS 16 514 512000 1100
117932007 murch B May 30, 2021, 7:35 p.m. OK Rust TESTS 16 514 2048000 1100
117931918 murch B May 30, 2021, 7:33 p.m. OK Rust TESTS 16 529 0 1100
117909264 Genius3435 B May 30, 2021, 4:12 p.m. OK Rust TESTS 16 545 307200 1100

remove filters

Back to search problems