2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred)

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
1906 2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 35601863 Dec. 3, 2023, 4:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1686 ) E Merge Not Sort PROGRAMMING constructive algorithms dp #knapsack

B'You are currently researching the Merge Sort algorithm. Merge Sort is a sorting algorithm that is based on the principle of Divide and Conquer. It works by dividing an array into two subarrays of equal length, sorting each subarrays, then merging the sorted subarrays back together to form the final sorted array. You are particularly interested in the merging routine. Common merge implementation will combine two subarrays by iteratively comparing their first elements, and move the smaller one to a new merged array. More precisely, the merge algorithm can be presented by the following pseudocode. During your research, you are keen to understand the behaviour of the merge algorithm when arrays A and B are not necessarily sorted. For example, if A = [3, 1, 6] and B = [4, 5, 2] , then text{Merge}(A, B) = [3, 1, 4, 5, 2, 6] . To further increase the understanding of the merge algorithm, you decided to work on the following problem. You are given an array C of length 2 cdot N such that it is a permutation of 1 to 2 cdot N . Construct any two arrays A and B of the same length N , such that text{Merge}(A, B) = C , or determine if it is impossible to do so. The first line consists of an integer N ( 1 <= q N <= q 1000 ). The following line consists of 2 cdot N integers C_i . The array C is a permutation of 1 to 2 cdot N . If it is impossible to construct two arrays A and B of length N such that text{Merge}(A, B) = C , then output -1. Otherwise, output the arrays A and B in two lines. The first line consists of N integers A_i . The second line consists of N integers B_i . If there are several possible answers, output any of them. Explanation for the sample input/output #1 The solution A = [3, 1, 4] and B = [5, 2, 6] is also correct. Explanation for the sample input/output #2 The solu'...

Tutorials

problem_analysis.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235635724 NenadDapic E Dec. 3, 2023, 9:27 p.m. OK FPC TESTS 50 31 8192000
235475168 Naman_Agarwal_03 onkar_somani vishesh011 E Dec. 3, 2023, 6:41 a.m. OK GNU C++14 TESTS 50 15 204800
235474586 RealReliauk minstdfx MegalovaniaJ E Dec. 3, 2023, 6:35 a.m. OK GNU C++14 TESTS 50 15 307200
235466616 UTE_Kai lamduybao03 canhnam357 E Dec. 3, 2023, 5:12 a.m. OK GNU C++14 TESTS 50 15 512000
235470287 PEIMUDA bilibilitdasc Error_Yuan E Dec. 3, 2023, 5:54 a.m. OK GNU C++14 TESTS 50 15 716800
235478664 bary E Dec. 3, 2023, 7:09 a.m. OK GNU C++14 TESTS 50 15 8192000
235467069 AnosVoldigoad Linmobi HHH666666 E Dec. 3, 2023, 5:17 a.m. OK GNU C++14 TESTS 50 15 20377600
235493730 xvzhiming E Dec. 3, 2023, 8:57 a.m. OK GNU C++14 TESTS 50 30 0
235466059 yeminghan E Dec. 3, 2023, 5:05 a.m. OK GNU C++14 TESTS 50 30 8294400
235479806 Adityavb05 E Dec. 3, 2023, 7:19 a.m. OK GNU C++14 TESTS 50 30 8499200
235473611 vangtrangtan E Dec. 3, 2023, 6:27 a.m. OK GNU C++14 TESTS 50 30 32665600
235467428 aa2985759 AkaiLemon yang12138 E Dec. 3, 2023, 5:21 a.m. OK GNU C++17 TESTS 50 15 102400
235491703 doccocaubai E Dec. 3, 2023, 8:44 a.m. OK GNU C++17 TESTS 50 15 204800
235476072 JomnoiZ E Dec. 3, 2023, 6:48 a.m. OK GNU C++17 TESTS 50 15 204800
235472202 GRB_080319B E Dec. 3, 2023, 6:13 a.m. OK GNU C++17 TESTS 50 15 204800
235470146 HaoxuanXIE SingleZombie forxen E Dec. 3, 2023, 5:53 a.m. OK GNU C++17 TESTS 50 15 204800
235468542 hieu_2004 E Dec. 3, 2023, 5:35 a.m. OK GNU C++17 TESTS 50 15 819200
235474138 _chroneZ E Dec. 3, 2023, 6:32 a.m. OK GNU C++17 TESTS 50 15 2252800
235473249 devasadbek jaxongir0914 jypiter E Dec. 3, 2023, 6:23 a.m. OK GNU C++17 TESTS 50 15 2867200
235474309 aymanrasheed7 serotonin Alpha_Q E Dec. 3, 2023, 6:33 a.m. OK GNU C++17 TESTS 50 15 16384000
235489294 DarkBug MrLinYin bianLiangMing E Dec. 3, 2023, 8:27 a.m. OK GNU C++17 TESTS 50 15 16486400
235617474 chappy1 E Dec. 3, 2023, 6:01 p.m. OK GNU C++17 (64) TESTS 50 15 0
235650125 Irmuun.Ch E Dec. 4, 2023, 3 a.m. OK GNU C++17 (64) TESTS 50 15 102400
235493034 khang_123 _bqn cheat_when_I_was_young E Dec. 3, 2023, 8:53 a.m. OK GNU C++17 (64) TESTS 50 15 102400
235482088 jiangnaihui E Dec. 3, 2023, 7:36 a.m. OK GNU C++17 (64) TESTS 50 15 102400
235477493 Kizk zplus paoxiaomo E Dec. 3, 2023, 7 a.m. OK GNU C++17 (64) TESTS 50 15 102400
235470819 maomao90 E Dec. 3, 2023, 6 a.m. OK GNU C++17 (64) TESTS 50 15 4096000
235466372 Karuna arnold518 YeongTree E Dec. 3, 2023, 5:08 a.m. OK GNU C++17 (64) TESTS 50 15 4096000
235471152 phtniit E Dec. 3, 2023, 6:03 a.m. OK GNU C++17 (64) TESTS 50 15 4915200
235466495 BigHeadCarrot niao_v AKCqhzdy E Dec. 3, 2023, 5:10 a.m. OK GNU C++17 (64) TESTS 50 15 7884800
235466962 huzheng20 lck_AC jiangzimi2008 E Dec. 3, 2023, 5:16 a.m. OK GNU C++17 (64) TESTS 50 31 0
235624004 pi_3.1416 E Dec. 3, 2023, 6:58 p.m. OK GNU C++20 (64) TESTS 50 15 0
235465856 y0y68 _carrotqq_ Ayachi0721 E Dec. 3, 2023, 5:02 a.m. OK GNU C++20 (64) TESTS 50 15 0
235660415 kuguadawang E Dec. 4, 2023, 5:46 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235522136 MisterReaper E Dec. 3, 2023, 12:53 p.m. OK GNU C++20 (64) TESTS 50 15 102400
235488575 Orifkhon E Dec. 3, 2023, 8:22 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235487376 _KuroNeko_ nhitopia Team4_HoangMinh E Dec. 3, 2023, 8:13 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235485601 Husanboy E Dec. 3, 2023, 8 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235478792 YangJackie Megumin2006 Ann E Dec. 3, 2023, 7:10 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235476419 nbu-yqh idle-person 5-3 E Dec. 3, 2023, 6:51 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235476326 binh192004 thcs2nguyen hvmegy E Dec. 3, 2023, 6:50 a.m. OK GNU C++20 (64) TESTS 50 15 102400
235479203 ericchen890 michaelsxiang theSSS E Dec. 3, 2023, 7:14 a.m. OK Java 11 TESTS 50 218 1740800
235481645 SriniV Edge_Tree Mustela_Erminea E Dec. 3, 2023, 7:33 a.m. OK Java 17 TESTS 50 264 2355200
235525353 arvindf232 E Dec. 3, 2023, 1:20 p.m. OK Kotlin 1.6 TESTS 50 233 2764800
235491237 yonsweng E Dec. 3, 2023, 8:41 a.m. OK PyPy 3 TESTS 50 763 47308800
235489342 shubhargava E Dec. 3, 2023, 8:28 a.m. OK PyPy 3-64 TESTS 50 108 9523200
235472931 nisritha35 sushmanth.dampur8780 E Dec. 3, 2023, 6:20 a.m. OK PyPy 3-64 TESTS 50 124 21401600
235473035 nisritha35 sushmanth.dampur8780 E Dec. 3, 2023, 6:21 a.m. OK PyPy 3-64 TESTS 50 124 21504000
235475188 Mohamed_Hamed E Dec. 3, 2023, 6:41 a.m. OK PyPy 3-64 TESTS 50 171 22528000
235468072 huangxw E Dec. 3, 2023, 5:29 a.m. OK PyPy 3-64 TESTS 50 187 75161600

remove filters

Back to search problems