Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main()
- {
- string a,b;
- cin >> a >> b;
- if (a==b)
- cout << -1;
- else
- cout << max(a.size(),b.size());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement