cf/mirror

Changing a String

CF
56D2100· master2s256 MB⌨ stdin/stdout
#dp

Examples

Sample 1of 2
Input
ABA
ABBBA
Output
2
INSERT 3 B
INSERT 4 B
Sample 2of 2
Input
ACCEPTED
WRONGANSWER
Output
10
REPLACE 1 W
REPLACE 2 R
REPLACE 3 O
REPLACE 4 N
REPLACE 5 G
REPLACE 6 A
INSERT 7 N
INSERT 8 S
INSERT 9 W
REPLACE 11 R
56D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)