Testing Round 20 (Unrated, Communication Problems)

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
2168 Testing Round 20 (Unrated, Communication Problems) FINISHED False 3600 14225123 Nov. 3, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 3289 ) A2 Encode and Decode (Hard Version) PROGRAMMING bitmasks interactive math

This is the hard version of the problem. The difference between the versions is that in this version, (a_i \leq 10^9). This is a run-twice (communication) problem. In these problems, your program will be run twice. All variables stored in the memory will be lost between runs, but information given to you in the first run may be important in trying to solve the problem correctly in the second run. Therefore, the main challenge is to find a strategy to communicate between the two runs using the limited output you can use. Time limit and memory limit are not shared between the runs. For example, in this problem, since the time limit is (2) seconds, you will only receive a verdict of Time Limit Exceeded if either run exceeds (2) seconds, but it is perfectly okay if both runs of your program last (1.5) seconds. In this problem, your task is to find a strategy to encode and decode an array (a) of size (n). The first run is the encoding phase. You are given (n) and the elements of (a) by the jury. Your task is to encode this array into a string (s) that contains only letters of the lowercase English alphabet , and pass (s) back to the jury. Then, your program will terminate, and all variables stored in memory will be lost. The second run is the decoding phase. You are given the string (s) (the same string you passed to the jury during the first run) by the jury. Your task is to decode (s) and determine (n) and the elements of array (a) that were originally given by the jury. In other words, you must reverse your encoding algorithm from the first run. First Run Your code will be run exactly two times on each test. On the first run, you will perform encoding. Input The first line of the input contains the string first . The purpose of this is so your program recognizes that this is its first run, and it should act as the encoding algorithm. The second line contains exactly an integer (n) ($$$1 \le n \le 10

Tutorials

Testing Round 20 Editorial (officially unofficial)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
347274694 Axoryn A2 Nov. 3, 2025, 3:03 p.m. OK C# 13 TESTS 10 109 1331200
347269592 tddaij A2 Nov. 3, 2025, 2:44 p.m. OK C# 13 TESTS 10 124 819200
347270664 fn95950 A2 Nov. 3, 2025, 2:47 p.m. OK C# 13 TESTS 10 124 2252800
347281008 Albecepon A2 Nov. 3, 2025, 3:30 p.m. OK C# 13 TESTS 10 374 37888000
347281648 Anmol.rai A2 Nov. 3, 2025, 3:33 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347277248 SarangThakare A2 Nov. 3, 2025, 3:14 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347277065 ugurtekin427 A2 Nov. 3, 2025, 3:13 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347274024 ghimaji A2 Nov. 3, 2025, 3 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347273523 Yuaeb_698 A2 Nov. 3, 2025, 2:58 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347272438 Mithilesh_watane A2 Nov. 3, 2025, 2:54 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347272259 parody_new A2 Nov. 3, 2025, 2:53 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347272131 MinToet_06 A2 Nov. 3, 2025, 2:53 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347268822 peteza A2 Nov. 3, 2025, 2:41 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
347306594 kanav67 A2 Nov. 3, 2025, 6:01 p.m. OK C++17 (GCC 7-32) TESTS 10 46 102400
347296339 Kusha_gra A2 Nov. 3, 2025, 4:56 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
347292453 NKN A2 Nov. 3, 2025, 4:32 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
347291435 sai-17 A2 Nov. 3, 2025, 4:27 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
347351108 konghaojie A2 Nov. 4, 2025, 5:42 a.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347341776 North1304 A2 Nov. 4, 2025, 3:33 a.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347333601 VICTORIS A2 Nov. 4, 2025, 1:08 a.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347316156 ryanghanbari3 A2 Nov. 3, 2025, 7:21 p.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347311791 36champ A2 Nov. 3, 2025, 6:41 p.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347280250 M4NN A2 Nov. 3, 2025, 3:26 p.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347275618 KostyaSmirnov A2 Nov. 3, 2025, 3:07 p.m. OK C++20 (GCC 13-64) TESTS 10 46 102400
347347987 manikya_sharma A2 Nov. 4, 2025, 5:06 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347344046 Evan2024 A2 Nov. 4, 2025, 4:06 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347342209 snow37 A2 Nov. 4, 2025, 3:39 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347332585 RoninMello A2 Nov. 4, 2025, 12:38 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347331042 sanbi52 A2 Nov. 4, 2025, 12:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347327122 hungchi17 A2 Nov. 3, 2025, 10:06 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347324595 he_who_remain A2 Nov. 3, 2025, 9:16 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347324288 midnightLotus A2 Nov. 3, 2025, 9:10 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347319623 date_2.0 A2 Nov. 3, 2025, 8:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347308052 scwelt A2 Nov. 3, 2025, 6:12 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
347268364 hos.lyric A2 Nov. 3, 2025, 2:40 p.m. OK D TESTS 10 77 2355200
347276679 ruban A2 Nov. 3, 2025, 3:11 p.m. OK FPC TESTS 10 77 4915200
347272926 1435730 A2 Nov. 3, 2025, 2:56 p.m. OK GNU C11 TESTS 10 77 8294400
347282605 fractal73 A2 Nov. 3, 2025, 3:37 p.m. OK GNU C11 TESTS 10 108 8294400
347270186 pengin_2000 A2 Nov. 3, 2025, 2:46 p.m. OK GNU C11 TESTS 10 139 8499200
347271043 afeefbrother A2 Nov. 3, 2025, 2:49 p.m. OK GNU C11 TESTS 10 155 8396800
347334440 0x3F A2 Nov. 4, 2025, 1:26 a.m. OK Go TESTS 10 92 819200
347276888 owi8270 A2 Nov. 3, 2025, 3:12 p.m. OK Go TESTS 10 93 1740800
347328519 ysahu A2 Nov. 3, 2025, 10:40 p.m. OK Java 21 TESTS 10 264 716800
347273914 Aisenh037 A2 Nov. 3, 2025, 3 p.m. OK Java 21 TESTS 10 265 614400
347277384 RayenBouazizi A2 Nov. 3, 2025, 3:14 p.m. OK Java 21 TESTS 10 265 1331200
347323822 Meet_Patel_2220 A2 Nov. 3, 2025, 9:02 p.m. OK Java 21 TESTS 10 280 614400
347284716 devrishithakur1 A2 Nov. 3, 2025, 3:49 p.m. OK Java 21 TESTS 10 280 1433600
347326257 sahasrad A2 Nov. 3, 2025, 9:48 p.m. OK Java 21 TESTS 10 281 307200
347286121 keshav_.agg A2 Nov. 3, 2025, 3:57 p.m. OK Java 21 TESTS 10 281 1843200
347288113 Sudip809 A2 Nov. 3, 2025, 4:08 p.m. OK Java 21 TESTS 10 296 409600
347280422 folzz A2 Nov. 3, 2025, 3:27 p.m. OK Java 21 TESTS 10 296 409600
347274470 mohitbeesetty A2 Nov. 3, 2025, 3:02 p.m. OK Java 21 TESTS 10 296 614400
347269313 roshankumar4567 A2 Nov. 3, 2025, 2:43 p.m. OK Java 8 TESTS 10 171 0
347271388 navya06 A2 Nov. 3, 2025, 2:50 p.m. OK Java 8 TESTS 10 187 0
347280810 CreAdiTv A2 Nov. 3, 2025, 3:29 p.m. OK Java 8 TESTS 10 202 0
347280703 miniks A2 Nov. 3, 2025, 3:29 p.m. OK Java 8 TESTS 10 218 0
347280581 miniks A2 Nov. 3, 2025, 3:28 p.m. OK Java 8 TESTS 10 218 0
347279599 SoMeQuit A2 Nov. 3, 2025, 3:24 p.m. OK Java 8 TESTS 10 218 0
347275999 testtest111ksjfrdvn A2 Nov. 3, 2025, 3:08 p.m. OK Java 8 TESTS 10 1030 23756800
347268107 Tlatoani A2 Nov. 3, 2025, 2:39 p.m. OK Kotlin 2.2 TESTS 10 202 204800
347268151 arvindf232 A2 Nov. 3, 2025, 2:39 p.m. OK Kotlin 2.2 TESTS 10 234 1024000
347280567 dglima A2 Nov. 3, 2025, 3:28 p.m. OK Node.js TESTS 10 140 4915200
347273309 Korrah A2 Nov. 3, 2025, 2:57 p.m. OK PyPy 3 TESTS 10 124 3481600
347275206 DoryperPevin A2 Nov. 3, 2025, 3:05 p.m. OK PyPy 3 TESTS 10 155 4505600
347327372 VaHiX A2 Nov. 3, 2025, 10:12 p.m. OK PyPy 3-64 TESTS 10 93 2662400
347322128 isa773 A2 Nov. 3, 2025, 8:37 p.m. OK PyPy 3-64 TESTS 10 93 3072000
347346918 candies_ A2 Nov. 4, 2025, 4:50 a.m. OK PyPy 3-64 TESTS 10 93 3276800
347269293 Semion_Solomonov11 A2 Nov. 3, 2025, 2:43 p.m. OK PyPy 3-64 TESTS 10 108 2662400
347269817 omarsaifeldeen2000 A2 Nov. 3, 2025, 2:45 p.m. OK PyPy 3-64 TESTS 10 108 3174400
347281293 ielenik A2 Nov. 3, 2025, 3:31 p.m. OK PyPy 3-64 TESTS 10 108 3481600
347271674 niggucodes A2 Nov. 3, 2025, 2:51 p.m. OK PyPy 3-64 TESTS 10 108 3584000
347279591 FuriousSnail A2 Nov. 3, 2025, 3:24 p.m. OK PyPy 3-64 TESTS 10 108 3788800
347268079 golomb A2 Nov. 3, 2025, 2:39 p.m. OK PyPy 3-64 TESTS 10 108 6758400
347269555 Akshar_7 A2 Nov. 3, 2025, 2:44 p.m. OK PyPy 3-64 TESTS 10 108 7782400
347269833 _j.rishit_ A2 Nov. 3, 2025, 2:45 p.m. OK Python 3 TESTS 10 92 1740800
347276671 AssasinThe1 A2 Nov. 3, 2025, 3:11 p.m. OK Python 3 TESTS 10 93 1536000
347274662 vaishali_modi A2 Nov. 3, 2025, 3:03 p.m. OK Python 3 TESTS 10 93 1536000
347293597 Wahaj A2 Nov. 3, 2025, 4:39 p.m. OK Python 3 TESTS 10 93 1638400
347282362 akhileshchikka A2 Nov. 3, 2025, 3:36 p.m. OK Python 3 TESTS 10 93 1638400
347279408 gargkohina19 A2 Nov. 3, 2025, 3:23 p.m. OK Python 3 TESTS 10 93 1638400
347276686 praxxnnt06 A2 Nov. 3, 2025, 3:11 p.m. OK Python 3 TESTS 10 93 1638400
347319614 darkbronzer A2 Nov. 3, 2025, 8:02 p.m. OK Python 3 TESTS 10 93 1740800
347291268 22d41a6637 A2 Nov. 3, 2025, 4:26 p.m. OK Python 3 TESTS 10 93 1740800
347279420 sanchali28 A2 Nov. 3, 2025, 3:23 p.m. OK Python 3 TESTS 10 93 1740800
347340885 Spheniscine A2 Nov. 4, 2025, 3:20 a.m. OK Rust 2021 TESTS 10 61 0
347274290 NagisaF A2 Nov. 3, 2025, 3:01 p.m. OK Rust 2021 TESTS 10 62 0
347329615 0x81 A2 Nov. 3, 2025, 11:13 p.m. OK Rust 2024 TESTS 10 46 0
347272771 micronc A2 Nov. 3, 2025, 2:55 p.m. OK Rust 2024 TESTS 10 62 0
347270662 Dilha_1526 A2 Nov. 3, 2025, 2:47 p.m. OK Rust 2024 TESTS 10 62 102400
347268722 null_lambda A2 Nov. 3, 2025, 2:41 p.m. OK Rust 2024 TESTS 10 62 102400
347269367 Egor A2 Nov. 3, 2025, 2:43 p.m. OK Rust 2024 TESTS 10 77 0
347314792 Svlad_Cjelli A2 Nov. 3, 2025, 7:07 p.m. OK Rust 2024 TESTS 10 77 102400
347305156 pradeep027 A2 Nov. 3, 2025, 5:52 p.m. OK Rust 2024 TESTS 10 77 102400
347273450 silicalet A2 Nov. 3, 2025, 2:58 p.m. OK Rust 2024 TESTS 10 77 102400

remove filters

Back to search problems