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
( 65 ) G Gene Editor PROGRAMMING

Biologists have recently discovered an interesting phenomenon in a particular type of organism. Each organism possesses a gene sequence consisting exclusively of two types of genes, represented by the characters A and B . These organisms reproduce asexually, meaning that the offspring usually inherit an identical gene sequence. However, due to occasional cloning errors during reproduction, mutations may occur. Biologists have observed that these errors can take the following forms: Inserting the substring AA at any position in the gene sequence. Removing the substring AA from any position in the gene sequence; the remaining parts are concatenated without altering their order. Inserting the substring BBB at any position in the gene sequence. Removing the substring BBB from any position in the gene sequence; the remaining parts are concatenated without altering their order. Inserting a special substring (s) at any position in the gene sequence. Removing the substring (s) from any position in the gene sequence; the remaining parts are concatenated without altering their order. These mutations may occur multiple times during a single cloning event and always happen sequentially, one at a time. For example, suppose (s = ABAB). An organism with gene sequence ABBABBA could produce an offspring with gene sequence A through the following series of mutations: The biologists possess an organism with a specific gene sequence (t). They are also interested in all possible organisms whose gene sequences have length (n). Since each position in a gene sequence can be either A or B , there are (2^n) such organisms in total. The question is: Given strings (s), (t), and (n), how many of these (2^n) organisms (that is, all gene sequences of length (n)) can be produced from the organism with gene sequence (t) through a sequence of valid mutation operations as described above? Since the answer may be very large, output the

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
349238109 cywohoy G Nov. 16, 2025, 10:05 a.m. OK C++20 (GCC 13-64) TESTS 100 515 3072000
349238378 cywohoy G Nov. 16, 2025, 10:08 a.m. OK C++20 (GCC 13-64) TESTS 100 515 3481600
349269423 LittleCube G Nov. 16, 2025, 2:26 p.m. OK C++23 (GCC 14-64, msys2) TESTS 100 327 0
349350169 hungchi17 G Nov. 16, 2025, 9:31 p.m. OK C++23 (GCC 14-64, msys2) TESTS 100 483 3686400
349246311 ogenus G Nov. 16, 2025, 11:13 a.m. OK C++23 (GCC 14-64, msys2) TESTS 100 483 3686400
349256621 ogenus G Nov. 16, 2025, 12:26 p.m. OK C++23 (GCC 14-64, msys2) TESTS 100 499 3686400

remove filters

Back to search problems