https://codeforces.com/problemset/problem/766/A
如果俩串一模一样,输出-1.否则输出较长得那个字符串的长度。
#include<bits/stdc++.h>
using namespace std;
map<char,int>mp;
int main(void)
{
string a,b; cin>>a>>b;
if(a.size()>b.size()) swap(a,b);
if(a==b) puts("-1");
else cout<<b.size();
}