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
( 263 ) J Bottle Arrangement PROGRAMMING dsu greedy

Mayaw works in a renowned Epah (aboriginal Taiwanese millet wine; Epah is the Pangcah term for aboriginal Taiwanese millet wine, named in the language of the Pangcah people, the largest Indigenous group in Taiwan) bar in the Fata'an Village. To showcase the depth of its collections, the bar has a two-row wine rack where each row can fit exactly (n) bottles. There are already (n) bottles placed on the back row of the rack, where the (i)-th bottle from left has height (a_i). The owner of the bar has another (n) bottles with distinct heights (b_1, \ldots, b_n) that he would like Mayaw to put on the first row. To ensure that all bottles on the rack are visible, the owner requires that each bottle on the back row should not be blocked by the one put in front of it. That is, if a bottle of height (h) is put on the (i)-th spot (from left) in the first row, then (h) must be less than (a_i). However, not all such arrangements are good for the owner. To pay tributes to the Maxi Mountain nearby, he additionally demands that the bottles in the front row should display a mountain-like shape. In particular, the heights of the bottles, when listing from left to right, should form a sequence that is first (non-strictly) increasing and then (non-strictly) decreasing. Unfortunately, sometimes it is impossible to achieve owner's requirements. That is why Mayaw is also allowed to slightly reduce a bottle's height by removing its cap that has a height of (1). In other words, after the removal of the cap, the height of the bottle decreases by exactly (1). Of course, exposing the Epah inside the bottle to the open air is detrimental to its quality, and therefore it is desirable to remove as few bottle caps as possible. Can you help Mayaw determine the minimum number of caps needed to be removed so that he can arrange the bottles in a way that satisfies the owner's requirements? Note that the positions of the bottles in the back row

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
293064907 little_vegetable LMydd0225 cayaxi09 J Nov. 24, 2024, 9:38 a.m. OK C++17 (GCC 7-32) TESTS 109 624 27443200
293060221 youdu666 zhutianrui Gold14526 J Nov. 24, 2024, 9:26 a.m. OK C++17 (GCC 7-32) TESTS 109 874 84992000
293117793 PixelCat J Nov. 24, 2024, 3:34 p.m. OK C++17 (GCC 7-32) TESTS 109 1312 79769600
293086107 Kaey Virv TheScrasse J Nov. 24, 2024, 11:40 a.m. OK C++20 (GCC 13-64) TESTS 109 374 56320000
293091840 nfssdq J Nov. 24, 2024, 12:19 p.m. OK C++20 (GCC 13-64) TESTS 109 374 80588800
293084968 Hanghang007 H_W_Y Meatherm J Nov. 24, 2024, 11:32 a.m. OK C++20 (GCC 13-64) TESTS 109 608 31948800
293048594 wsyear Little09 J Nov. 24, 2024, 8:07 a.m. OK C++20 (GCC 13-64) TESTS 109 1218 57139200
293126589 that_bai_xa_hoi J Nov. 24, 2024, 4:47 p.m. OK C++20 (GCC 13-64) TESTS 109 1296 41267200
293069932 cxm1024 IceYukino pp_orange J Nov. 24, 2024, 9:43 a.m. OK C++20 (GCC 13-64) TESTS 109 1499 192512000
293082808 CDuongg bachbeo2007 J Nov. 24, 2024, 11:18 a.m. OK C++20 (GCC 13-64) TESTS 109 2108 234291200
293081053 fried-chicken tarjen J Nov. 24, 2024, 11:06 a.m. OK C++20 (GCC 13-64) TESTS 109 2233 249446400
293059633 kradcigam Xun_Xiaoyao no_dream J Nov. 24, 2024, 9:22 a.m. OK C++20 (GCC 13-64) TESTS 109 4030 385945600
293083785 HuaJun limanjun feeder1 J Nov. 24, 2024, 11:24 a.m. OK C++20 (GCC 13-64) TESTS 109 4343 557772800
293078963 defnotmee LoboLobo enzopsm J Nov. 24, 2024, 10:51 a.m. OK C++23 (GCC 14-64, msys2) TESTS 109 342 76595200
293171424 Ion_Gravirei J Nov. 25, 2024, 4:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 109 1171 51097600
293106917 415411 J Nov. 24, 2024, 2:10 p.m. OK C++23 (GCC 14-64, msys2) TESTS 109 1312 51404800
293089480 Pakpim IceBorworntat ttamx J Nov. 24, 2024, 12:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 109 2046 66969600
293086166 penguinman yuto1115 Wailydest J Nov. 24, 2024, 11:40 a.m. OK C++23 (GCC 14-64, msys2) TESTS 109 2218 78848000
293106580 415411 J Nov. 24, 2024, 2:07 p.m. OK C++23 (GCC 14-64, msys2) TESTS 109 2765 51097600
293018556 J Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0
293018288 J Nov. 24, 2024, 1:17 a.m. OK Unknown TESTS 0 0 0

remove filters

Back to search problems