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 114967511 May 30, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8886 ) C Compression and Expansion PROGRAMMING brute force data structures greedy implementation trees 1600

B'William is a huge fan of planning ahead. That is why he starts his morning routine by creating a nested list of upcoming errands. A valid nested list is any list which can be created from a list with one item "1" by applying some operations. Each operation inserts a new item into the list, on a new line, just after one of existing items a_1 ,. , a_2 ,. , a_3 ,. , , cdots , ,. ,a_k and can be one of two types: When William decided to save a Word document with the list of his errands he accidentally hit a completely different keyboard shortcut from the "Ctrl-S" he wanted to hit. It 's not known exactly what shortcut he pressed but after triggering it all items in the list were replaced by a single number: the last number originally written in the item number. William wants you to help him restore a fitting original nested list. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^3 ), which is the number of lines in the list. Each of the next n lines contains a single integer a_i ( 1 <= a_i <= n ), which is what remains of William 's nested list. It is guaranteed that in each test case at least one fitting list exists. It is guaranteed that the sum of values n across all test cases does not exceed 10^3 . For each test case output n lines which represent a valid nested list, which could become the data provided to you by William. If there are multiple answers, print any. In the second example test case one example of a fitting list is: 1 1.1 1.1.1 1.1.2 1.2 1.2.1 2 2.1 2.2 This list can be produced by using the sequence of operations shown below: '...

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
117917905 ulorew C May 30, 2021, 4:47 p.m. OK Delphi TESTS 18 187 102400 1600
117909082 LengYun C May 30, 2021, 4:11 p.m. OK GNU C++11 TESTS 18 30 1638400 1600
117911300 huuphuc C May 30, 2021, 4:21 p.m. OK GNU C++11 TESTS 18 30 2252800 1600
117910315 rabs00 C May 30, 2021, 4:17 p.m. OK GNU C++11 TESTS 18 31 0 1600
117922477 fishcathu. C May 30, 2021, 5:37 p.m. OK GNU C++11 TESTS 18 31 0 1600
117913322 sennna_sempre C May 30, 2021, 4:29 p.m. OK GNU C++11 TESTS 18 31 0 1600
117928304 Hitmman_002 C May 30, 2021, 6:41 p.m. OK GNU C++11 TESTS 18 31 102400 1600
117941914 flmast C May 31, 2021, 1:13 a.m. OK GNU C++11 TESTS 18 31 1331200 1600
117945911 Hey1234_1234 C May 31, 2021, 3:13 a.m. OK GNU C++11 TESTS 18 31 1331200 1600
117947383 dyliloveyou C May 31, 2021, 3:45 a.m. OK GNU C++11 TESTS 18 31 2150400 1600
117917005 sarailQAQ C May 30, 2021, 4:44 p.m. OK GNU C++11 TESTS 18 31 2252800 1600
117937381 lazyguy2000 C May 30, 2021, 9:36 p.m. OK GNU C++14 TESTS 18 15 204800 1600
117929811 jatinkansal81 C May 30, 2021, 7:03 p.m. OK GNU C++14 TESTS 18 15 204800 1600
117952550 ak_24 C May 31, 2021, 5:06 a.m. OK GNU C++14 TESTS 18 30 204800 1600
117917283 cypher14 C May 30, 2021, 4:45 p.m. OK GNU C++14 TESTS 18 30 1126400 1600
117934583 zeit C May 30, 2021, 8:23 p.m. OK GNU C++14 TESTS 18 30 2252800 1600
117949486 Sawan_pateo C May 31, 2021, 4:28 a.m. OK GNU C++14 TESTS 18 30 2252800 1600
117928892 ratnesh_tiwari C May 30, 2021, 6:49 p.m. OK GNU C++14 TESTS 18 30 2355200 1600
117936047 krijgertje C May 30, 2021, 8:57 p.m. OK GNU C++14 TESTS 18 30 2355200 1600
117914437 ayushj118 C May 30, 2021, 4:34 p.m. OK GNU C++14 TESTS 18 30 2457600 1600
117928520 Matuagkeetarp C May 30, 2021, 6:45 p.m. OK GNU C++14 TESTS 18 30 3174400 1600
117912529 mukhallat C May 30, 2021, 4:26 p.m. OK GNU C++17 TESTS 18 15 0 1600
117949972 Ax_alchemy C May 31, 2021, 4:37 a.m. OK GNU C++17 TESTS 18 15 307200 1600
117931728 Reaper_org C May 30, 2021, 7:30 p.m. OK GNU C++17 TESTS 18 15 3174400 1600
117926865 Manas_Rocko C May 30, 2021, 6:21 p.m. OK GNU C++17 TESTS 18 30 0 1600
117912503 coolcoder C May 30, 2021, 4:26 p.m. OK GNU C++17 TESTS 18 30 204800 1600
117951948 tulsishah7 C May 31, 2021, 4:57 a.m. OK GNU C++17 TESTS 18 30 204800 1600
117932266 almonds C May 30, 2021, 7:40 p.m. OK GNU C++17 TESTS 18 30 204800 1600
117914144 arna C May 30, 2021, 4:33 p.m. OK GNU C++17 TESTS 18 30 1024000 1600
117922307 SitaRam_11 C May 30, 2021, 5:36 p.m. OK GNU C++17 TESTS 18 30 1024000 1600
117916881 kyash_27 C May 30, 2021, 4:43 p.m. OK GNU C++17 TESTS 18 30 1228800 1600
117910505 brainy_fool C May 30, 2021, 4:17 p.m. OK GNU C++17 (64) TESTS 18 30 0 1600
117924956 DreadArceus C May 30, 2021, 6 p.m. OK GNU C++17 (64) TESTS 18 30 0 1600
117924528 AnonySharma C May 30, 2021, 5:55 p.m. OK GNU C++17 (64) TESTS 18 30 2150400 1600
117913569 Htmt C May 30, 2021, 4:30 p.m. OK GNU C++17 (64) TESTS 18 30 2150400 1600
117914909 MY_TIME_HAS_COME C May 30, 2021, 4:36 p.m. OK GNU C++17 (64) TESTS 18 30 2252800 1600
117924641 DreadArceus C May 30, 2021, 5:57 p.m. OK GNU C++17 (64) TESTS 18 31 0 1600
117931392 lucid_dreamer C May 30, 2021, 7:25 p.m. OK GNU C++17 (64) TESTS 18 31 0 1600
117928160 vdv09 C May 30, 2021, 6:39 p.m. OK GNU C++17 (64) TESTS 18 31 0 1600
117943705 chctxdy68 C May 31, 2021, 2:17 a.m. OK GNU C++17 (64) TESTS 18 31 0 1600
117942439 221 C May 31, 2021, 1:33 a.m. OK GNU C++17 (64) TESTS 18 31 0 1600
117911040 flying_rocket C May 30, 2021, 4:20 p.m. OK Java 11 TESTS 18 171 0 1600
117954325 nitesh.dtu C May 31, 2021, 5:33 a.m. OK Java 11 TESTS 18 187 0 1600
117942635 Andwerp C May 31, 2021, 1:40 a.m. OK Java 11 TESTS 18 202 0 1600
117927915 tony_heart C May 30, 2021, 6:35 p.m. OK Java 11 TESTS 18 202 0 1600
117948472 Sachin_2961 C May 31, 2021, 4:08 a.m. OK Java 11 TESTS 18 202 0 1600
117915371 tankman890 C May 30, 2021, 4:38 p.m. OK Java 11 TESTS 18 202 0 1600
117933327 noobboyyyy C May 30, 2021, 7:59 p.m. OK Java 11 TESTS 18 218 0 1600
117946157 akhileshreddy C May 31, 2021, 3:19 a.m. OK Java 11 TESTS 18 218 0 1600
117924296 saurabh_kl C May 30, 2021, 5:53 p.m. OK Java 11 TESTS 18 218 0 1600
117915419 Ste C May 30, 2021, 4:38 p.m. OK Java 11 TESTS 18 218 0 1600
117933242 guru1603 C May 30, 2021, 7:57 p.m. OK Java 8 TESTS 18 109 0 1600
117908734 pramit1998 C May 30, 2021, 4:10 p.m. OK Java 8 TESTS 18 124 0 1600
117911648 honeysingh18 C May 30, 2021, 4:22 p.m. OK Java 8 TESTS 18 124 0 1600
117936297 NerfThis C May 30, 2021, 9:02 p.m. OK Java 8 TESTS 18 124 0 1600
117930510 1752495 C May 30, 2021, 7:12 p.m. OK Java 8 TESTS 18 124 0 1600
117914014 GoldenShadow C May 30, 2021, 4:32 p.m. OK Java 8 TESTS 18 124 0 1600
117951938 Pranay2516 C May 31, 2021, 4:57 a.m. OK Java 8 TESTS 18 124 0 1600
117913311 GVR C May 30, 2021, 4:29 p.m. OK Java 8 TESTS 18 139 0 1600
117921704 medude C May 30, 2021, 5:32 p.m. OK Java 8 TESTS 18 139 0 1600
117918233 LightSam C May 30, 2021, 4:48 p.m. OK Java 8 TESTS 18 139 0 1600
117921280 Tlatoani C May 30, 2021, 5:30 p.m. OK Kotlin TESTS 18 155 0 1600
117917956 pallav12 C May 30, 2021, 4:47 p.m. OK Kotlin TESTS 18 296 102400 1600
117923355 og.kostya C May 30, 2021, 5:44 p.m. OK Mono C# TESTS 18 62 3584000 1600
117909304 BIT C May 30, 2021, 4:12 p.m. OK Mono C# TESTS 18 77 7372800 1600
117922826 Codingmyworld C May 30, 2021, 5:40 p.m. OK MS C++ TESTS 18 218 0 1600
117911074 icecomet C May 30, 2021, 4:20 p.m. OK MS C++ 2017 TESTS 18 31 1024000 1600
117946096 dingzhao777 C May 31, 2021, 3:17 a.m. OK MS C++ 2017 TESTS 18 78 819200 1600
117926857 P___ C May 30, 2021, 6:21 p.m. OK MS C++ 2017 TESTS 18 139 0 1600
117918417 Toryu C May 30, 2021, 4:48 p.m. OK MS C++ 2017 TESTS 18 249 0 1600
117910311 Viktor36 C May 30, 2021, 4:17 p.m. OK MS C++ 2017 TESTS 18 249 0 1600
117910360 tygrysek C May 30, 2021, 4:17 p.m. OK MS C++ 2017 TESTS 18 280 0 1600
117914251 Serenity1517 C May 30, 2021, 4:33 p.m. OK MS C++ 2017 TESTS 18 280 2048000 1600
117923393 og.kostya C May 30, 2021, 5:45 p.m. OK .NET Core C# TESTS 18 93 2048000 1600
117941310 sakapon C May 31, 2021, 12:45 a.m. OK .NET Core C# TESTS 18 124 12083200 1600
117911992 whaleee C May 30, 2021, 4:24 p.m. OK PyPy 2 TESTS 18 139 73318400 1600
117921376 not_tehlka C May 30, 2021, 5:30 p.m. OK PyPy 3 TESTS 18 109 4915200 1600
117922204 gourav2001k C May 30, 2021, 5:35 p.m. OK PyPy 3 TESTS 18 109 7270400 1600
117937743 tanmay104 C May 30, 2021, 9:50 p.m. OK PyPy 3 TESTS 18 124 3788800 1600
117909962 babydoll C May 30, 2021, 4:15 p.m. OK PyPy 3 TESTS 18 124 4915200 1600
117921558 gourav2001k C May 30, 2021, 5:31 p.m. OK PyPy 3 TESTS 18 124 6860800 1600
117917770 rivnam C May 30, 2021, 4:46 p.m. OK PyPy 3 TESTS 18 139 8396800 1600
117929634 nitish420 C May 30, 2021, 7 p.m. OK PyPy 3 TESTS 18 140 6451200 1600
117949434 rivnam C May 31, 2021, 4:27 a.m. OK PyPy 3 TESTS 18 140 7168000 1600
117908805 cocopalm C May 30, 2021, 4:10 p.m. OK PyPy 3 TESTS 18 155 3174400 1600
117939239 VarAmu C May 30, 2021, 11:04 p.m. OK PyPy 3 TESTS 18 156 3072000 1600
117916735 vermasahil C May 30, 2021, 4:43 p.m. OK Python 2 TESTS 18 93 102400 1600
117911358 dev_vrath C May 30, 2021, 4:21 p.m. OK Python 3 TESTS 18 77 409600 1600
117924980 peakyfuckingblinder C May 30, 2021, 6 p.m. OK Python 3 TESTS 18 155 102400 1600
117953681 PrasoonJha C May 31, 2021, 5:24 a.m. OK Python 3 TESTS 18 155 409600 1600
117946252 shiviDON C May 31, 2021, 3:21 a.m. OK Python 3 TESTS 18 156 614400 1600
117932473 alvaro.durand C May 30, 2021, 7:43 p.m. OK Python 3 TESTS 18 170 716800 1600
117953260 lucifer1004 C May 31, 2021, 5:18 a.m. OK Python 3 TESTS 18 171 409600 1600
117929410 andrei6184 C May 30, 2021, 6:57 p.m. OK Python 3 TESTS 18 171 4505600 1600
117911902 DungeonMaster99 C May 30, 2021, 4:23 p.m. OK Python 3 TESTS 18 187 716800 1600
117910726 alphagoai C May 30, 2021, 4:18 p.m. OK Python 3 TESTS 18 265 409600 1600
117928534 schwi_riku C May 30, 2021, 6:45 p.m. OK Python 3 TESTS 18 265 1740800 1600
117917530 rpashuto C May 30, 2021, 4:45 p.m. OK Python 3 + libs TESTS 18 155 0 1600
117913334 Hillmouse C May 30, 2021, 4:29 p.m. OK Rust TESTS 18 46 0 1600
117955214 Genius3435 C May 31, 2021, 5:46 a.m. OK Rust TESTS 18 46 0 1600
117911465 IvanDyachenko C May 30, 2021, 4:21 p.m. OK Scala TESTS 18 561 0 1600

remove filters

Back to search problems