2025 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
2172 2025 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) FINISHED False 18000 13147823 Nov. 16, 2025, 1:50 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 558 ) J Sliding Tiles PROGRAMMING

You have a special sliding puzzle played on an (n \times n) grid. This puzzle is slightly different from standard sliding puzzles: between each pair of adjacent columns, there is a vertical bar of height (h_i) (for (1 \leq i < n)) positioned at the bottom of the grid. Each (h_i) indicates how many rows from the bottom this bar extends upwards, and it blocks tile movement between the two columns in those rows. The grid contains several tiles, each occupying exactly one cell. These tiles can slide freely in the grid unless they are blocked by the grid boundaries, a vertical bar (depending on its height) or another tile. The puzzle allows two types of tilt operations: Tilt right: All tiles slide to the right as far as possible. Tilt down: All tiles slide downward as far as possible. In both operations, all tiles move simultaneously and stop only when blocked by the grid's edge, a bar, or another tile. Define a group operation as a sequence of: first tilt the grid to the right, then tilt it downward. Initially, the (i)-th column has (a_i) tiles stacked from the bottom of the column. You perform the group operation exactly once on the board. After the operation, determine the number of tiles in each column. The first line contains an integer (n), representing the size of the board. The second line contains (n) integers (a_1,a_2,\ldots,a_n), where (a_i) is the number of tiles in the (i)-th column initially. The third line contains (n-1) integers (h_1,h_2,\ldots,h_{n-1}), where (h_i) is the height of the bar between column (i) and column (i+1). (2 \le n \le 5 \times 10^5) (0 \le a_i \le n) (0 \le h_i \le n-1) Print (n) numbers in a new line, representing the number of tiles in each column after performing the group operation exactly once.

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
349239310 asdasdqwer vishld snokes J Nov. 16, 2025, 10:18 a.m. OK C++17 (GCC 7-32) TESTS 38 499 32870400
349211785 nukkua zoryn J Nov. 16, 2025, 5:58 a.m. OK C++17 (GCC 7-32) TESTS 38 1030 46796800
349215746 iloveMT J Nov. 16, 2025, 6:34 a.m. OK C++17 (GCC 7-32) TESTS 38 1077 77107200
349265535 ToanLe J Nov. 16, 2025, 1:48 p.m. OK C++17 (GCC 7-32) TESTS 38 1406 37888000
349209844 YipChip chllo777 Woxuanyi J Nov. 16, 2025, 5:38 a.m. OK C++17 (GCC 7-32) TESTS 38 1811 40960000
349249907 su_da J Nov. 16, 2025, 11:31 a.m. OK C++17 (GCC 7-32) TESTS 38 1968 61542400
349196752 johnny8337 mo_onrabbit2 as_dfsdf J Nov. 16, 2025, 2:56 a.m. OK C++17 (GCC 7-32) TESTS 38 2437 121139200
349262292 Sept J Nov. 16, 2025, 1:18 p.m. OK C++17 (GCC 7-32) TESTS 38 2546 30105600
349200053 HollwoQ_Pelw trungnotchung bachbeo2007 J Nov. 16, 2025, 3:37 a.m. OK C++17 (GCC 7-32) TESTS 38 2827 165273600
349363313 VaHiX J Nov. 17, 2025, 2:26 a.m. OK C++17 (GCC 7-32) TESTS 38 2921 165273600
349366368 Ichinoseyang J Nov. 17, 2025, 3:19 a.m. OK C++20 (GCC 13-64) TESTS 38 374 54476800
349217017 1bin dong_gas djs100201 J Nov. 16, 2025, 6:45 a.m. OK C++20 (GCC 13-64) TESTS 38 499 54784000
349200722 khoianh cowcowwy BonnieCaledonia J Nov. 16, 2025, 3:44 a.m. OK C++20 (GCC 13-64) TESTS 38 546 62054400
349203578 Dragst rtgsp cpismylifeOwO J Nov. 16, 2025, 4:17 a.m. OK C++20 (GCC 13-64) TESTS 38 609 236236800
349202743 negativez2 nguyentunglam ItsJerr J Nov. 16, 2025, 4:07 a.m. OK C++20 (GCC 13-64) TESTS 38 687 50278400
349197322 I_love_Khanh_Dan J Nov. 16, 2025, 3:04 a.m. OK C++20 (GCC 13-64) TESTS 38 703 52224000
349218889 CaoJinCheng J Nov. 16, 2025, 7:02 a.m. OK C++20 (GCC 13-64) TESTS 38 749 35737600
349211068 HuaJun limanjun feeder1 J Nov. 16, 2025, 5:51 a.m. OK C++20 (GCC 13-64) TESTS 38 765 67686400
349197984 kotatsugame J Nov. 16, 2025, 3:12 a.m. OK C++20 (GCC 13-64) TESTS 38 842 88166400
349194982 HCMUS-Atcoder J Nov. 16, 2025, 2:32 a.m. OK C++20 (GCC 13-64) TESTS 38 905 60416000
349205350 Theta_00 J Nov. 16, 2025, 4:41 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 483 126464000
349223246 SorahISA J Nov. 16, 2025, 7:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 546 41881600
349358189 qwerasdfzxcl J Nov. 17, 2025, 1:10 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 562 34406400
349204516 SmuggingSpon The_Moon-_- tu_rt_le J Nov. 16, 2025, 4:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 640 22528000
349200073 ksun48 J Nov. 16, 2025, 3:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 671 111411200
349202556 YCY_love_little09 J Nov. 16, 2025, 4:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 718 53862400
349206216 durgesh.thakurr J Nov. 16, 2025, 4:54 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 733 61440000
349258183 DuongForeverAlone J Nov. 16, 2025, 12:38 p.m. OK C++23 (GCC 14-64, msys2) TESTS 38 749 50278400
349258649 DuongForeverAlone J Nov. 16, 2025, 12:42 p.m. OK C++23 (GCC 14-64, msys2) TESTS 38 765 48332800
349204841 reirugan Hori LMeyling J Nov. 16, 2025, 4:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 765 74444800

remove filters

Back to search problems