2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams)

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
2041 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) FINISHED False 18000 43973723 Nov. 24, 2024, 7:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1319 ) M Selection Sort PROGRAMMING greedy

Every student enrolled in the algorithms course is required to submit an assignment this week. The task is to implement an (O(n^2))-time algorithm to sort (n) given integers in non-decreasing order. Alice has already completed her assignment, and her implementation is shown below. While you have access to Alice's code, you prefer not to simply copy it. Instead, you want to use Alice's sorting function as a building block for your own solution. There are two ways as listed below you can utilize her function, but each of them can be applied at most once . The order in which these two operations are invoked can be arbitrary. Prefix sort: choose a length (i \in \{1, 2, \ldots, n\}) and call (alicesort(s, i)). This sorts the first (i) elements in the array (s). Suffix sort: choose a length (i \in \{1, 2, \ldots, n\}) and call (alicesort(s+n-i, i)). This sorts the last (i) elements in the array (s). Due to the time complexity of the sorting algorithm, the cost of performing either a prefix or suffix sort is (i^2), where (i) is the length of the chosen subarray. Your goal is to determine the minimum cost to sort the input array (s) of (n) integers in non-decreasing order using Alice's function, following the rules mentioned above. For example, Let (s=3,2,5,5,4,1). We can first perform a suffix sort of length (4), and the array becomes (3,2,1,4,5,5). Then, we perform a prefix sort of length (3), and the array becomes (1,2,3,4,5,5), which is a sorted array. The cost is (4^2+3^2=25). Here is another example, let (s=4,3,2,1). We can complete the sorting by performing only a prefix sort of length (4), and the cost is (4^2=16). The first line contains exactly one integer (n) which indicates the number of integers in the array (s). The second line contains the (n) integers in (s=s_0, s_1, \ldots, s_{n-1}). $$$1 \le n \

Tutorials

Problem Analysis and Hints (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
293083370 og.kostya M Nov. 24, 2024, 11:21 a.m. OK C# 10 TESTS 26 640 19558400
293059928 chenyewei_1234 M Nov. 24, 2024, 9:24 a.m. OK C++17 (GCC 7-32) TESTS 26 296 26112000
293045822 lanhf SliferSkyd rainbowbunny M Nov. 24, 2024, 7:48 a.m. OK C++17 (GCC 7-32) TESTS 26 342 4300800
293106358 WHISK3Y M Nov. 24, 2024, 2:06 p.m. OK C++17 (GCC 7-32) TESTS 26 358 28160000
293166414 andychen2012 M Nov. 25, 2024, 3:16 a.m. OK C++17 (GCC 7-32) TESTS 26 374 16076800
293071377 platter M Nov. 24, 2024, 9:54 a.m. OK C++17 (GCC 7-32) TESTS 26 390 15872000
293078075 JDScript0117 M Nov. 24, 2024, 10:45 a.m. OK C++17 (GCC 7-32) TESTS 26 390 20070400
293169793 JDScript0117 M Nov. 25, 2024, 4:16 a.m. OK C++17 (GCC 7-32) TESTS 26 421 20070400
293055538 merom M Nov. 24, 2024, 8:56 a.m. OK C++17 (GCC 7-32) TESTS 26 421 20070400
293158910 theRealChainman M Nov. 24, 2024, 11:47 p.m. OK C++17 (GCC 7-32) TESTS 26 421 36454400
293071482 Emo_OIer IANYEYZ MaxFWL M Nov. 24, 2024, 9:55 a.m. OK C++17 (GCC 7-32) TESTS 26 437 56115200
293078969 zouguangchen dcytrl cancan1234 M Nov. 24, 2024, 10:51 a.m. OK C++20 (GCC 13-64) TESTS 26 265 20070400
293114809 Gabp M Nov. 24, 2024, 3:10 p.m. OK C++20 (GCC 13-64) TESTS 26 296 12595200
293047383 Iwara liujg xiaozengX M Nov. 24, 2024, 7:59 a.m. OK C++20 (GCC 13-64) TESTS 26 296 24064000
293051643 JoeyJ liyelin KevinLikesCoding M Nov. 24, 2024, 8:29 a.m. OK C++20 (GCC 13-64) TESTS 26 312 16076800
293061656 Exusiai1 gjlccc smallC233 M Nov. 24, 2024, 9:35 a.m. OK C++20 (GCC 13-64) TESTS 26 312 32153600
293060268 Exusiai1 gjlccc smallC233 M Nov. 24, 2024, 9:26 a.m. OK C++20 (GCC 13-64) TESTS 26 327 32153600
293084429 bary M Nov. 24, 2024, 11:28 a.m. OK C++20 (GCC 13-64) TESTS 26 343 8499200
293074558 JueFan GS256 Anonyme M Nov. 24, 2024, 10:19 a.m. OK C++20 (GCC 13-64) TESTS 26 343 16076800
293079091 HFDLYS shendeliliang M Nov. 24, 2024, 10:52 a.m. OK C++20 (GCC 13-64) TESTS 26 358 95948800
293042612 cxm1024 IceYukino pp_orange M Nov. 24, 2024, 7:25 a.m. OK C++20 (GCC 13-64) TESTS 26 359 17612800
293045469 cmk666 M Nov. 24, 2024, 7:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 186 17612800
293137518 Alenochka M Nov. 24, 2024, 6:20 p.m. OK C++23 (GCC 14-64, msys2) TESTS 26 296 14131200
293060150 Exusiai1 gjlccc smallC233 M Nov. 24, 2024, 9:25 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 312 32153600
293052787 Iceturky deng_wo_ni_xi vector.never_fst M Nov. 24, 2024, 8:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 327 288665600
293087276 Giga_Cronos EduardoBrito M Nov. 24, 2024, 11:48 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 343 28364800
293083631 LFY- Natlis Yaroslav_R_03 M Nov. 24, 2024, 11:23 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 358 17715200
293105604 Roll_Num_44 M Nov. 24, 2024, 2 p.m. OK C++23 (GCC 14-64, msys2) TESTS 26 390 20377600
293058939 binhtranmcs congthanh123 M Nov. 24, 2024, 9:17 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 405 28569600
293109313 ZukaNguyenTran M Nov. 24, 2024, 2:28 p.m. OK C++23 (GCC 14-64, msys2) TESTS 26 406 28569600
293166409 molongdadi M Nov. 25, 2024, 3:16 a.m. OK C++23 (GCC 14-64, msys2) TESTS 26 421 12492800
293055185 __baozii__ M Nov. 24, 2024, 8:54 a.m. OK Go TESTS 26 983 28672000
293076724 sushmanth.dampur8780 M Nov. 24, 2024, 10:35 a.m. OK PyPy 3-64 TESTS 26 811 137625600
293061330 alexwice M Nov. 24, 2024, 9:32 a.m. OK PyPy 3-64 TESTS 26 1015 133324800
293170927 hxu10 M Nov. 25, 2024, 4:37 a.m. OK PyPy 3-64 TESTS 26 1015 133734400
293080528 sushmanth.dampur8780 M Nov. 24, 2024, 11:02 a.m. OK PyPy 3-64 TESTS 26 1734 149811200
293019030 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293019021 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018961 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018903 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018846 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018836 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018776 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018763 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018667 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018613 M Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0

remove filters

Back to search problems