Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
5,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. int main()
  5. {
  6.     string a,b;
  7.     cin >> a >> b;
  8.     if (a==b)
  9.     cout << -1;
  10.     else
  11.     cout << max(a.size(),b.size());
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement