P9193 [USACO23OPEN] Good Bitstrings P
Description
For any two positive integers $a$ and $b$, define the function `gen_string(a,b)` by the following Python code:
```
def gen_string(a: int, b: int):
res = ""
ia, ib = 0, 0
while ia + ib < a + b:
if ia * b
Input Format
N/A
Output Format
N/A
Explanation/Hint
Input $2$: $A,B\le100$;\
Input $3$: $A,B\le1000$;\
Inputs $4-7$: $A,B\le10^6$;\
Inputs $8-13$: All answers are at most $10^5$.\
Inputs $14-21$: No additional constraints.