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
( 5788 ) E Number Maze PROGRAMMING constructive algorithms implementation

At the "Number Maze," a mysterious code master stands guard. He blocks the path and smiles, saying: "Brave adventurer, passing through this gate will not be easy! An ancient numeric code, capable of being rearranged into numerous combinations, is in the code master's possession. The traveler must choose two numeric codes from these combinations and show their (x)A(y)B result, or the gate will trap the traveler here forever!" The rules of (x)A(y)B are as follows: Each A indicates that a digit in both codes matches in both value and position. Each B indicates that a digit in both codes matches in value but not position. For example: You are given a base numeric code (n), which can be one of (\{12, 123, 1234\}). Consider all possible permutations of the digits of (n), sorted in ascending order. Let the (j)-th and (k)-th permutations (1-indexed) be the two numeric codes chosen by the traveler. Your task is to compare these two permutations and determine their (x)A(y)B result, according to the rules above. Each test contains multiple test cases. The first line contains a single integer (t), representing the number of tests the code master will conduct. The description of the test cases follows. The only line of each test case contains three integers (n), (j), and (k), representing the base numeric code and the indices of the two permutations to be compared, respectively. (1\le t \le 1000) (n \in \{12,123,1234\}) Both (j) and (k) are valid indices of permutations of the digits of (n). For each test case, output the result in the format (x)A(y)B , where (x) and (y) are integers.

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
349227040 og.kostya E Nov. 16, 2025, 8:20 a.m. OK C# 10 TESTS 5 93 0
349226963 og.kostya E Nov. 16, 2025, 8:19 a.m. OK C# 13 TESTS 5 108 0
349193602 raokc E Nov. 16, 2025, 2:13 a.m. OK C++17 (GCC 7-32) TESTS 5 30 0
349214023 MKS_23 E Nov. 16, 2025, 6:18 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349202235 justvibration E Nov. 16, 2025, 4 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349197057 punyanino kristo31 rayndr E Nov. 16, 2025, 3 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349193896 derug_ E Nov. 16, 2025, 2:17 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349193478 pleasebugmenot.dev davidjohnson950115 E Nov. 16, 2025, 2:12 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349193075 mr-nihal E Nov. 16, 2025, 2:07 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349192819 hgcnxn E Nov. 16, 2025, 2:03 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349192515 HollwoQ_Pelw trungnotchung bachbeo2007 E Nov. 16, 2025, 1:59 a.m. OK C++17 (GCC 7-32) TESTS 5 31 0
349192811 YYZ20101208jason emmoy Smart_Jason E Nov. 16, 2025, 2:03 a.m. OK C++17 (GCC 7-32) TESTS 5 31 168345600
349208843 ZengZhaoGan_124 ZengZhaoGan_085 ZZGZZGZZG E Nov. 16, 2025, 5:27 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0
349201793 yeeoo E Nov. 16, 2025, 3:56 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0
349195667 Aurorazzx TheMantou E Nov. 16, 2025, 2:41 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0
349194833 25Kazumi Khanh__Ngoc Minh_Tu E Nov. 16, 2025, 2:30 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0
349194803 klu2300090141 E Nov. 16, 2025, 2:30 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0
349192130 Grisses ddxrS su_da E Nov. 16, 2025, 1:55 a.m. OK C++20 (GCC 13-64) TESTS 5 30 0
349216023 IO420 E Nov. 16, 2025, 6:36 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
349212444 safin-567 E Nov. 16, 2025, 6:04 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
349209442 Hazem_Abulgheit55 E Nov. 16, 2025, 5:34 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
349199763 Muzammil_Mughal Taimoor_yazmani E Nov. 16, 2025, 3:33 a.m. OK C++20 (GCC 13-64) TESTS 5 31 0
349356971 pmy_coding E Nov. 17, 2025, 12:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349211368 ali.h.deeb E Nov. 16, 2025, 5:54 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349208791 CoderACPPradyuman E Nov. 16, 2025, 5:26 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349202375 24044504jiabowen E Nov. 16, 2025, 4:02 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349201581 SreenathReddyk E Nov. 16, 2025, 3:53 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349197787 sqrteipi E Nov. 16, 2025, 3:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349197097 ywalcab E Nov. 16, 2025, 3:01 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349196950 FLASDABV E Nov. 16, 2025, 2:59 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349196713 ajinkya1p3 E Nov. 16, 2025, 2:56 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349196452 AizaKKK nzy2006 virtual_self. E Nov. 16, 2025, 2:52 a.m. OK C++23 (GCC 14-64, msys2) TESTS 5 31 0
349193166 1435730 E Nov. 16, 2025, 2:08 a.m. OK GNU C11 TESTS 5 15 102400
349205672 taarkik E Nov. 16, 2025, 4:46 a.m. OK GNU C11 TESTS 5 31 0
349206793 huzaifa_07 E Nov. 16, 2025, 5:02 a.m. OK GNU C11 TESTS 5 31 102400
349199515 bbszdmh E Nov. 16, 2025, 3:31 a.m. OK GNU C11 TESTS 5 31 102400
349207800 rokhade_nayan_ E Nov. 16, 2025, 5:15 a.m. OK GNU C11 TESTS 5 46 0
349208554 SumitXorY E Nov. 16, 2025, 5:23 a.m. OK Java 21 TESTS 5 186 204800
349196043 1091857051 E Nov. 16, 2025, 2:47 a.m. OK Java 21 TESTS 5 187 102400
349205537 Ayush_Raj_2027 E Nov. 16, 2025, 4:44 a.m. OK Java 21 TESTS 5 218 614400
349211986 LakhimpurKheri E Nov. 16, 2025, 6 a.m. OK Java 21 TESTS 5 218 716800
349201314 khushi792005 E Nov. 16, 2025, 3:50 a.m. OK Java 21 TESTS 5 233 1126400
349216835 Divyarajsinh73 E Nov. 16, 2025, 6:43 a.m. OK Java 21 TESTS 5 234 1228800
349202133 manasamesala01 E Nov. 16, 2025, 3:59 a.m. OK Java 21 TESTS 5 249 921600
349195833 alegrarsio_2005 E Nov. 16, 2025, 2:44 a.m. OK Java 21 TESTS 5 249 1228800
349214812 vanrybakinn E Nov. 16, 2025, 6:25 a.m. OK Java 21 TESTS 5 264 716800
349215170 neerajrikhari2002 E Nov. 16, 2025, 6:28 a.m. OK Java 21 TESTS 5 264 819200
349216337 harshita936 E Nov. 16, 2025, 6:39 a.m. OK Java 8 TESTS 5 171 0
349203653 Sathvika_Aluri E Nov. 16, 2025, 4:18 a.m. OK Java 8 TESTS 5 171 0
349195063 qinpengfei E Nov. 16, 2025, 2:33 a.m. OK Java 8 TESTS 5 187 0
349203867 termcode E Nov. 16, 2025, 4:21 a.m. OK PyPy 3 TESTS 5 124 2048000
349203016 Jerrasterix krishisop DSKroc E Nov. 16, 2025, 4:10 a.m. OK PyPy 3 TESTS 5 124 133529600
349194830 CNDYD E Nov. 16, 2025, 2:30 a.m. OK PyPy 3 TESTS 5 156 2252800
349197755 dawood_78 E Nov. 16, 2025, 3:09 a.m. OK PyPy 3 TESTS 5 171 3584000
349211204 Dmitry2086 Grigoryan_Andrey gugudu2086 E Nov. 16, 2025, 5:52 a.m. OK PyPy 3 TESTS 5 265 7270400
349192453 mythofys E Nov. 16, 2025, 1:59 a.m. OK PyPy 3-64 TESTS 5 77 2867200
349363634 VaHiX E Nov. 17, 2025, 2:31 a.m. OK PyPy 3-64 TESTS 5 77 3072000
349204083 Head_N0_Sh00T awpdaunich qworld E Nov. 16, 2025, 4:24 a.m. OK PyPy 3-64 TESTS 5 77 3072000
349195813 XiaoMing123 E Nov. 16, 2025, 2:44 a.m. OK PyPy 3-64 TESTS 5 77 3072000
349344436 Itrenbach E Nov. 16, 2025, 7:58 p.m. OK PyPy 3-64 TESTS 5 78 2150400
349344398 stevencao2005 E Nov. 16, 2025, 7:57 p.m. OK PyPy 3-64 TESTS 5 92 2150400
349236248 mawo78 E Nov. 16, 2025, 9:45 a.m. OK PyPy 3-64 TESTS 5 92 2150400
349194403 Jaiderbr E Nov. 16, 2025, 2:24 a.m. OK PyPy 3-64 TESTS 5 92 2150400
349201771 potatoArmy E Nov. 16, 2025, 3:55 a.m. OK PyPy 3-64 TESTS 5 93 1433600
349194358 lovmilkdragon E Nov. 16, 2025, 2:24 a.m. OK PyPy 3-64 TESTS 5 93 1433600
349240190 aksarman E Nov. 16, 2025, 10:27 a.m. OK Python 2 TESTS 5 77 0
349357260 vannegass E Nov. 17, 2025, 12:44 a.m. OK Python 3 TESTS 5 61 0
349244652 Utsav-pal E Nov. 16, 2025, 11:06 a.m. OK Python 3 TESTS 5 61 0
349193990 cjunyuan E Nov. 16, 2025, 2:19 a.m. OK Python 3 TESTS 5 61 102400
349266468 Nezu_ E Nov. 16, 2025, 1:57 p.m. OK Python 3 TESTS 5 62 0
349207298 tezzi E Nov. 16, 2025, 5:09 a.m. OK Python 3 TESTS 5 62 0
349202271 Freeyouminds E Nov. 16, 2025, 4:01 a.m. OK Python 3 TESTS 5 62 0
349215097 kit27.cse48 E Nov. 16, 2025, 6:28 a.m. OK Python 3 TESTS 5 62 102400
349213227 KholodoK E Nov. 16, 2025, 6:11 a.m. OK Python 3 TESTS 5 62 102400
349206090 sourabh_2636 E Nov. 16, 2025, 4:53 a.m. OK Python 3 TESTS 5 62 102400
349204789 sebchavez1442 E Nov. 16, 2025, 4:33 a.m. OK Python 3 TESTS 5 62 102400
349248252 0x81 E Nov. 16, 2025, 11:17 a.m. OK Rust 2024 TESTS 5 31 0

remove filters

Back to search problems