Give you two strings S1 and S2 of equal length. One string exchange operation steps are as follows: select two subscript in a string (do not have to be different), and exchange the characters of the two subscript.
If you perform a string exchange on one of the strings at most once, you can make the two strings equal and return true; otherwise, you can return false.
输入描述:
The first line is the first string S1, and the second line is the second string S2
输出描述:
If you can make two strings equal by exchanging, output yeS, otherwise output N0
备注:
please attention your output