mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-12 17:05:15 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<pre>
|
||||
<strong>Input:</strong> x = 2, y = 5, z = 1
|
||||
<strong>Output:</strong> 12
|
||||
<strong>Explanation: </strong>We can concactenate the strings "BB", "AA", "BB", "AA", "BB", and "AB" in that order. Then, our new string is "BBAABBAABBAB".
|
||||
<strong>Explanation: </strong>We can concatenate the strings "BB", "AA", "BB", "AA", "BB", and "AB" in that order. Then, our new string is "BBAABBAABBAB".
|
||||
That string has length 12, and we can show that it is impossible to construct a string of longer length.
|
||||
</pre>
|
||||
|
||||
@@ -21,7 +21,7 @@ That string has length 12, and we can show that it is impossible to construct a
|
||||
<pre>
|
||||
<strong>Input:</strong> x = 3, y = 2, z = 2
|
||||
<strong>Output:</strong> 14
|
||||
<strong>Explanation:</strong> We can concactenate the strings "AB", "AB", "AA", "BB", "AA", "BB", and "AA" in that order. Then, our new string is "ABABAABBAABBAA".
|
||||
<strong>Explanation:</strong> We can concatenate the strings "AB", "AB", "AA", "BB", "AA", "BB", and "AA" in that order. Then, our new string is "ABABAABBAABBAA".
|
||||
That string has length 14, and we can show that it is impossible to construct a string of longer length.
|
||||
</pre>
|
||||
|
||||
|
Reference in New Issue
Block a user