20240125 Construction Problem Solutions
P1734E
First, analyze the second condition: rearrange it to $a_{r_1, c_1} - a_{r_1, c_2} \not\equiv a_{r_2, c_1} - a_{r_2, c_2} \pmod{n}$. Our goal is to ensure that the column-wise difference values between any two rows are distinct. We have not yet addressed conditions 1 and 3. Conddition 1 can be satisfied by taking all elements modulo $n$. ...
Posted on Mon, 14 Sep 2026 16:27:32 +0000 by Robkid
Constructing Lexicographically Minimal Strings with Minimized Maximum Prefix Borders
Given a string $s$, the goal is to find a permutation $t$ such that the maximum value of the border length $f(i)$ across all prefixes $i$ of $t$ is minimized. Among all permutations that achieve this minimum, $t$ must be the lexicographically smallest.
Character Analysis and Minimum Border Criteria
For any string containing at least two distinc ...
Posted on Tue, 18 Aug 2026 16:21:49 +0000 by shoz
Algorithmic Strategies for Sequence Construction, Pattern Matching, and Tree-Based Scheduling
Problem A: Reachable Sums via Step Sizes
Tags: Dynamic Programming Knapsack Variation
Approach
Given a maximum limit n and two step values a and b, the objective is to determine the largest integer less than or equal to n that can be formed by summing multiples of a and b. Since the value range is constrained, a boolean dynamic programming arra ...
Posted on Sun, 10 May 2026 11:38:23 +0000 by adrian_melange