swap string
题号:NC221034
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

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
示例1

输入

复制
aab
aba

输出

复制
yeS

说明

Just swap 'a' and 'b'

示例2

输入

复制
abcd
dcba

输出

复制
N0

说明

Can't do it

备注:

please attention your output