$\huge Thx$
by lupengheyyds @ 2022-10-19 17:07:53
这是样例:
input:
```cpp
abaaaba abcdaba
a b
b d
d e
e f
f g
g c
```
my output:
NO ANSWER!
true output:
8
by lupengheyyds @ 2022-10-19 17:10:53
找子串不能只找第一个啊……
如果像这样:
```example
abcdeabcd abcdee
abcd e
```
他实际上是有两个子串 `abcd` ,你需要替换后面的那个。
但照你的算法,只替换第一个,永远也找不到。
by PCwqyy @ 2022-10-20 17:06:41
@[PCwqyy](/user/567385) 多谢,我还以为换一个字串就要算一次
by lupengheyyds @ 2022-10-21 20:24:49
@[lupengheyyds](/user/580608) 谢楼主 我也是用find过不去。。。
by wyf1202 @ 2023-02-11 13:56:42
@[wyf1202](/user/756064) 不用谢,我们同是OI路上向着理想出发的奋斗者
by lupengheyyds @ 2023-02-11 14:04:41
考古
by PCwqyy @ 2023-02-11 14:26:50
@[lupengheyyds](/user/580608) 你高尚哈哈哈
by wyf1202 @ 2023-02-11 19:16:02
写到一半想到了这个问题,但是有点不想改(懒),果然WA最后一个点,还是得改。
by sjyh_jy @ 2023-05-27 16:55:06